File doc/inccomplete.txt changed (mode: 100644) (index 0a2012d..5cf2746) |
1 |
|
*inccomplete.txt* For Vim version 7.3. Last change: 2012 Jan 6 |
|
|
1 |
|
*inccomplete.txt* For Vim version 7.3. Last change: 2012 Apr 18 |
2 |
2 |
|
|
3 |
3 |
|
|
4 |
4 |
inccomplete plugin documentation by xaizek |
inccomplete plugin documentation by xaizek |
|
... |
... |
add directories to completion list *inccomplete-showdirs* |
95 |
95 |
If value of this option evaluates to true, plugin will search for |
If value of this option evaluates to true, plugin will search for |
96 |
96 |
directories and add it to completion list. |
directories and add it to completion list. |
97 |
97 |
|
|
|
98 |
|
append a slash to directory names *inccomplete-appendslash* |
|
99 |
|
*g:inccomplete_appendslash* |
|
100 |
|
type: bool |
|
101 |
|
default: false |
|
102 |
|
|
|
103 |
|
If value of this option evaluates to true, the plugin will append a slash |
|
104 |
|
to directory name completion items. Otherwise slashes will be added in the |
|
105 |
|
menu only. |
|
106 |
|
|
98 |
107 |
============================================================================== |
============================================================================== |
99 |
108 |
3. ToDo *inccomplete-todo* |
3. ToDo *inccomplete-todo* |
100 |
109 |
|
|
File plugin/inccomplete.vim changed (mode: 100644) (index dad8c07..c11ec16) |
1 |
1 |
" Name: inccomplete |
" Name: inccomplete |
2 |
2 |
" Author: xaizek <xaizek@gmail.com> |
" Author: xaizek <xaizek@gmail.com> |
3 |
|
" Version: 1.6.28 |
|
|
3 |
|
" Version: 1.6.29 |
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. |
|
... |
... |
if !exists('g:inccomplete_showdirs') |
28 |
28 |
let g:inccomplete_showdirs = 0 |
let g:inccomplete_showdirs = 0 |
29 |
29 |
endif |
endif |
30 |
30 |
|
|
|
31 |
|
if !exists('g:inccomplete_appendslash') |
|
32 |
|
let g:inccomplete_appendslash = 0 |
|
33 |
|
endif |
|
34 |
|
|
31 |
35 |
autocmd FileType c,cpp,objc,objcpp call s:ICInit() |
autocmd FileType c,cpp,objc,objcpp call s:ICInit() |
32 |
36 |
|
|
33 |
37 |
" maps <, ", / and \, sets 'omnifunc' |
" maps <, ", / and \, sets 'omnifunc' |
|
... |
... |
function! ICComplete(findstart, base) |
134 |
138 |
endif |
endif |
135 |
139 |
|
|
136 |
140 |
if isdirectory(l:increc[0].'/'.l:increc[1]) |
if isdirectory(l:increc[0].'/'.l:increc[1]) |
137 |
|
let l:strend = '' |
|
|
141 |
|
let l:strend = g:inccomplete_appendslash ? l:sl2 : '' |
138 |
142 |
let l:slash = l:sl2 |
let l:slash = l:sl2 |
139 |
143 |
else |
else |
140 |
144 |
let l:strend = l:closebracket |
let l:strend = l:closebracket |