xaizek / vim-inccomplete (License: Vim) (since 2018-12-07)
Vim plugin for #include directive completion in C family of languages.
Commit e8bca2345d12ac8a6156e9d41568659e72bbcac8

Add option to append slashes to directories
Author: xaizek
Author date (UTC): 2012-04-18 19:13
Committer name: xaizek
Committer date (UTC): 2012-04-18 19:15
Parent(s): 5fa307766a46e862c54e51d741f73e23acf79a86
Signing key:
Tree: 4ee1254bc04f2ff48d8d334e82c314008fabffa1
File Lines added Lines deleted
doc/inccomplete.txt 10 1
plugin/inccomplete.vim 6 2
File doc/inccomplete.txt changed (mode: 100644) (index 0a2012d..5cf2746)
1 *inccomplete.txt* For Vim version 7.3. Last change: 2012 Jan 6
1 *inccomplete.txt* For Vim version 7.3. Last change: 2012 Apr 18
2 2
3 3
4 4 inccomplete plugin documentation by xaizek inccomplete plugin documentation by xaizek
 
... ... add directories to completion list *inccomplete-showdirs*
95 95 If value of this option evaluates to true, plugin will search for If value of this option evaluates to true, plugin will search for
96 96 directories and add it to completion list. directories and add it to completion list.
97 97
98 append a slash to directory names *inccomplete-appendslash*
99 *g:inccomplete_appendslash*
100 type: bool
101 default: false
102
103 If value of this option evaluates to true, the plugin will append a slash
104 to directory name completion items. Otherwise slashes will be added in the
105 menu only.
106
98 107 ============================================================================== ==============================================================================
99 108 3. ToDo *inccomplete-todo* 3. ToDo *inccomplete-todo*
100 109
File plugin/inccomplete.vim changed (mode: 100644) (index dad8c07..c11ec16)
1 1 " Name: inccomplete " Name: inccomplete
2 2 " Author: xaizek <xaizek@gmail.com> " Author: xaizek <xaizek@gmail.com>
3 " Version: 1.6.28
3 " Version: 1.6.29
4 4 " License: Same terms as Vim itself (see :help license) " License: Same terms as Vim itself (see :help license)
5 5 " "
6 6 " See :help inccomplete for documentation. " See :help inccomplete for documentation.
 
... ... if !exists('g:inccomplete_showdirs')
28 28 let g:inccomplete_showdirs = 0 let g:inccomplete_showdirs = 0
29 29 endif endif
30 30
31 if !exists('g:inccomplete_appendslash')
32 let g:inccomplete_appendslash = 0
33 endif
34
31 35 autocmd FileType c,cpp,objc,objcpp call s:ICInit() autocmd FileType c,cpp,objc,objcpp call s:ICInit()
32 36
33 37 " maps <, ", / and \, sets 'omnifunc' " maps <, ", / and \, sets 'omnifunc'
 
... ... function! ICComplete(findstart, base)
134 138 endif endif
135 139
136 140 if isdirectory(l:increc[0].'/'.l:increc[1]) if isdirectory(l:increc[0].'/'.l:increc[1])
137 let l:strend = ''
141 let l:strend = g:inccomplete_appendslash ? l:sl2 : ''
138 142 let l:slash = l:sl2 let l:slash = l:sl2
139 143 else else
140 144 let l:strend = l:closebracket let l:strend = l:closebracket
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vim-inccomplete

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vim-inccomplete

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master