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

Don't add the directory when listing files in it
E.g.

#include <sys/

used to contain "sys/" as a match.
Author: xaizek
Author date (UTC): 2012-09-02 08:55
Committer name: xaizek
Committer date (UTC): 2012-09-02 08:55
Parent(s): 99a3168bb593e6af0d4d806073243a8afe2e7f4b
Signing key:
Tree: e857c28b94fa6aec9b4be850d851a075694b0f3c
File Lines added Lines deleted
plugin/inccomplete.vim 3 2
File plugin/inccomplete.vim changed (mode: 100644) (index a51a4ae..df80a5f)
1 1 " Name: inccomplete " Name: inccomplete
2 2 " Author: xaizek <xaizek@lavabit.com> " Author: xaizek <xaizek@lavabit.com>
3 " Version: 1.6.29
3 " Version: 1.6.30
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! s:ICFilterIncLst(user, inclst, base)
200 200
201 201 " filter by filename " filter by filename
202 202 let l:filebegin = a:base[strridx(a:base, l:sl2) + 1:] let l:filebegin = a:base[strridx(a:base, l:sl2) + 1:]
203 let l:inclst = filter(copy(a:inclst), 'v:val[1] =~ "^".l:filebegin')
203 let l:inclst = filter(copy(a:inclst),
204 \ '!empty(v:val[1]) && v:val[1] =~ "^".l:filebegin')
204 205
205 206 " correct slashes in paths " correct slashes in paths
206 207 if l:sl1 == '/' if l:sl1 == '/'
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