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

@ -21,6 +21,7 @@ All notable changes to this project will be documented in this file.
- Tips: [Smarter cursorline](README.md#smarter-cursorline) - Tips: [Smarter cursorline](README.md#smarter-cursorline)
- Tips: [Saner CTRL-L](README.md#saner-ctrl-l) - Tips: [Saner CTRL-L](README.md#saner-ctrl-l)
- Tips: [Disable audible and visual bells](README.md#disable-audible-and-visual-bells) - Tips: [Disable audible and visual bells](README.md#disable-audible-and-visual-bells)
- Tips: [Faster keyword completion](README.md#faster-keyword-completion)
- Usage: [Editing remote files](README.md#editing-remote-files) - Usage: [Editing remote files](README.md#editing-remote-files)
- Usage: [Restore cursor position when opening file](README.md#restore-cursor-position-when-opening-file) - Usage: [Restore cursor position when opening file](README.md#restore-cursor-position-when-opening-file)
- Usage: [MatchIt](README.md#matchit) - Usage: [MatchIt](README.md#matchit)

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) - [Don't lose selection when shifting sidewards](#dont-lose-selection-when-shifting-sidewards)
- [Reload a file on saving](#reload-a-file-on-saving) - [Reload a file on saving](#reload-a-file-on-saving)
- [Smarter cursorline](#smarter-cursorline) - [Smarter cursorline](#smarter-cursorline)
- [Faster keyword completion](#faster-keyword-completion)
#### [Commands](#commands-1) #### [Commands](#commands-1)
@ -1241,6 +1242,18 @@ autocmd InsertEnter * set nocursorline
autocmd InsertLeave * set cursorline 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 ## Commands
Useful commands that are good to know. Useful commands that are good to know.