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

Ignore directories which names start with a dot
These are most likely unneeded for all, while .deps and .libs can
be annoying.
Author: xaizek
Author date (UTC): 2012-09-09 15:53
Committer name: xaizek
Committer date (UTC): 2012-09-09 15:53
Parent(s): ea0eeb55c7b880afed48560c5859fd3802fdfe64
Signing key:
Tree: 86c8f4a1fb7c80497e4f5372b7c7ace6e00e6102
File Lines added Lines deleted
doc/inccomplete.txt 4 3
plugin/inccomplete.vim 6 1
File doc/inccomplete.txt changed (mode: 100644) (index eef792f..9f804ff)
1 *inccomplete.txt* For Vim version 7.3. Last change: 2012 Sep 02
1 *inccomplete.txt* For Vim version 7.3. Last change: 2012 Sep 09
2 2
3 3
4 4 inccomplete plugin documentation by xaizek inccomplete plugin documentation by xaizek
 
... ... typing subdirectory name and a slash (and optionally beginning of file name).
49 49
50 50 When |g:inccomplete_showdirs| is true, completion list contains directories When |g:inccomplete_showdirs| is true, completion list contains directories
51 51 and it will popup after hitting forward or backward slash key. Directories and it will popup after hitting forward or backward slash key. Directories
52 can be distinguished by the ending slash. Closing bracket is never added
53 to directory completion items.
52 can be distinguished by the ending slash. Directories which names start with
53 a dot are ignored. Closing bracket is never added to directory completion
54 items.
54 55
55 56 ============================================================================== ==============================================================================
56 57 2. Configuration *inccomplete-configuration* 2. Configuration *inccomplete-configuration*
File plugin/inccomplete.vim changed (mode: 100644) (index df80a5f..de48aec)
1 1 " Name: inccomplete " Name: inccomplete
2 2 " Author: xaizek <xaizek@lavabit.com> " Author: xaizek <xaizek@lavabit.com>
3 " Version: 1.6.30
3 " Version: 1.6.31
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.
 
... ... function! ICComplete(findstart, base)
138 138 endif endif
139 139
140 140 if isdirectory(l:increc[0].'/'.l:increc[1]) if isdirectory(l:increc[0].'/'.l:increc[1])
141 let l:slashidx = strridx(l:increc[1], l:sl2)
142 if l:increc[1][l:slashidx + 1] == '.'
143 continue
144 endif
145
141 146 let l:strend = g:inccomplete_appendslash ? l:sl2 : '' let l:strend = g:inccomplete_appendslash ? l:sl2 : ''
142 147 let l:slash = l:sl2 let l:slash = l:sl2
143 148 else else
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