File doc/inccomplete.txt changed (mode: 100644) (index 15ced9d..50b5c67) |
1 |
|
*inccomplete.txt* For Vim version 7.3. Last change: 2013 Nov 24 |
|
|
1 |
|
*inccomplete.txt* For Vim version 7.3. Last change: 2015 Aug 29 |
2 |
2 |
|
|
3 |
3 |
|
|
4 |
4 |
inccomplete plugin documentation by xaizek |
inccomplete plugin documentation by xaizek |
|
... |
... |
If value of this option evaluates to true, the plugin will append a slash |
114 |
114 |
to directory name completion items. Otherwise slashes will be added in the |
to directory name completion items. Otherwise slashes will be added in the |
115 |
115 |
menu only. |
menu only. |
116 |
116 |
|
|
|
117 |
|
root for local includes *inccomplete-root* |
|
118 |
|
*b:inccomplete_root* |
|
119 |
|
type: string |
|
120 |
|
default: not set |
|
121 |
|
|
|
122 |
|
When this option if set for current buffer, the plugin uses it as base |
|
123 |
|
directory for local completion. |
|
124 |
|
|
117 |
125 |
============================================================================== |
============================================================================== |
118 |
126 |
3. ToDo *inccomplete-todo* |
3. ToDo *inccomplete-todo* |
119 |
127 |
|
|
File plugin/inccomplete.vim changed (mode: 100644) (index c5e465f..3c606ea) |
1 |
1 |
" Name: inccomplete |
" Name: inccomplete |
2 |
2 |
" Author: xaizek <xaizek@openmailbox.org> |
" Author: xaizek <xaizek@openmailbox.org> |
3 |
|
" Version: 1.6.40 |
|
|
3 |
|
" Version: 1.7.40 |
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) |
267 |
267 |
|
|
268 |
268 |
" handle multicomponent paths (e.g. "a/...", <boost/...>) |
" handle multicomponent paths (e.g. "a/...", <boost/...>) |
269 |
269 |
if l:pos >= 0 |
if l:pos >= 0 |
270 |
|
let l:inclst = s:ICFilter(a:user, l:inclst, a:base, s:ICGetDir()) |
|
|
270 |
|
let l:lst = s:ICFilter(a:user, l:inclst, a:base, s:ICGetDir()) |
|
271 |
|
if exists('b:inccomplete_root') |
|
272 |
|
let l:lst += s:ICFilter(a:user, l:inclst, a:base, |
|
273 |
|
\ b:inccomplete_root) |
|
274 |
|
endif |
|
275 |
|
let l:inclst = l:lst |
271 |
276 |
endif |
endif |
272 |
277 |
|
|
273 |
278 |
return l:inclst |
return l:inclst |