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

More readable loop in ICFindIncludes()
Author: xaizek
Author date (UTC): 2016-06-03 19:19
Committer name: xaizek
Committer date (UTC): 2016-06-03 19:19
Parent(s): 2f5978618e1d197957f1dbeb594703ade24e2883
Signing key: 99DC5E4DB05F6BE2
Tree: e559248d52496b8be1d9bacd81b14bd23a21b6e8
File Lines added Lines deleted
plugin/inccomplete.vim 6 5
File plugin/inccomplete.vim changed (mode: 100644) (index 3c606ea..ab9ac54)
... ... function! s:ICFindIncludes(user, pathlst)
415 415
416 416 " prepare a:pathlst by forming regexps " prepare a:pathlst by forming regexps
417 417 for l:i in range(len(a:pathlst)) for l:i in range(len(a:pathlst))
418 if a:pathlst[i][-1:] == '/'
419 let a:pathlst[i] = a:pathlst[i][:-2]
418 let l:path = a:pathlst[i]
419 if l:path[-1:] == '/'
420 let l:path = l:path[:-2]
420 421 endif endif
421 let g:inccomplete_cache[a:pathlst[i]] = []
422 let l:tmp = substitute(a:pathlst[i], '\', '/', 'g')
423 let a:pathlst[i] = [a:pathlst[i], '^'.escape(l:tmp, '.')]
422 let g:inccomplete_cache[l:path] = []
423 let l:tmp = substitute(l:path, '\', '/', 'g')
424 let a:pathlst[i] = [l:path, '^'.escape(l:tmp, '.')]
424 425 endfor endfor
425 426
426 427 " process the results of find " process the results of find
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