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

Avoid delay on adding comments after #include
This was caused by slash mapping without proper regexp for it.
Author: xaizek
Author date (UTC): 2012-03-09 17:47
Committer name: xaizek
Committer date (UTC): 2012-03-09 17:47
Parent(s): 9bdb1ad4e46ed79c9ecfc01a838aee70f8d91c83
Signing key:
Tree: e57a14268454db44a360565427c59ec662644485
File Lines added Lines deleted
plugin/inccomplete.vim 2 2
File plugin/inccomplete.vim changed (mode: 100644) (index 7b646ce..0d9600b)
1 1 " Name: inccomplete " Name: inccomplete
2 2 " Author: xaizek <xaizek@gmail.com> " Author: xaizek <xaizek@gmail.com>
3 " Version: 1.6.25
3 " Version: 1.6.26
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.
 
... ... endfunction
55 55 " we do. " we do.
56 56 function! ICCompleteInc(bracket) function! ICCompleteInc(bracket)
57 57 if a:bracket == '/' || a:bracket == '\' if a:bracket == '/' || a:bracket == '\'
58 if getline('.') =~ '^\s*#\s*include\s*["<].*$'
58 if getline('.') =~ '^\s*#\s*include\s*["<][^">]*$'
59 59 return a:bracket."\<c-x>\<c-o>" return a:bracket."\<c-x>\<c-o>"
60 60 endif endif
61 61 endif endif
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