Tips: faster keyword completion

This commit is contained in:
Marco Hinz
2016-01-18 13:20:27 +01:00
parent 4e8bc2938e
commit c06ada579b
2 changed files with 14 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ added every day. Things about to be added can be found here:
- [Don't lose selection when shifting sidewards](#dont-lose-selection-when-shifting-sidewards)
- [Reload a file on saving](#reload-a-file-on-saving)
- [Smarter cursorline](#smarter-cursorline)
- [Faster keyword completion](#faster-keyword-completion)
#### [Commands](#commands-1)
@@ -1241,6 +1242,18 @@ autocmd InsertEnter * set nocursorline
autocmd InsertLeave * set cursorline
```
#### Faster keyword completion
The keyword completion (`<c-n>`/`<c-p>`) tries completing whatever is listed in
the `'complete'` option. By default this also includes tags (which can be
annoying) and scanning all included files (which can be very slow). If you can
live without these things, disable them:
```viml
set complete-=i " disable scanning included files
set complete-=t " disable searching tags
```
## Commands
Useful commands that are good to know.