1
0
Fork 0
forked from wezm/wezm.net

QA /technical/2008/05/stop-vim-completion-searching-included-files/

This commit is contained in:
Wesley Moore 2010-03-15 17:33:41 +11:00
parent cd08fdf8a9
commit 53184e6cbd
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
I use vim coupled with the <a href="http://www.vim.org/scripts/script.php?script_id=182">SuperTab</a> plugin for my text editing and auto-completion needs. In some vim setups (E.g. Mac OS X) it is configured by default to search included files when completing words. This sounds like a useful feature but it turns out not to be. It has a habit of searching the include files of system libraries and modules, the keywords of which you rarely want. Its also quite a slow operation as it trawls through all the files. The solution is to add the following in your .vimrc file.
I use vim coupled with the <a href="http://www.vim.org/scripts/script.php?script_id=182">SuperTab</a> plugin for my text editing and auto-completion needs. In some vim setups (E.g. Mac OS X) it is configured by default to search included files when completing words. This sounds like a useful feature but it turns out not to be. It has a habit of searching the include files of system libraries and modules, the keywords of which you rarely want. Its also quite a slow operation as it trawls through all the files. The solution is to add the following in your `.vimrc` file.
<code>set complete=.,w,b,u,t</code>
set complete=.,w,b,u,t
This is the same set of flags as the default except with the '<code>i</code>' option removed. See the help for the <a href="http://www.vim.org/htmldoc/options.html#%27complete%27">'complete' option</a> for an explanation of what each flag means.
This is the same set of flags as the default except with the '`i`' option removed. See the help for the <a href="http://www.vim.org/htmldoc/options.html#%27complete%27">'complete' option</a> for an explanation of what each flag means.

View file

@ -11,7 +11,7 @@ body {
p,li,blockquote {
line-height: 1.2;
}
p {
p,pre {
margin: 0 0 1em 0;
}