Any word completion
From Vim Tips Wiki
(Redirected from VimTip4)
[edit] Duplicate tip
This tip is very similar to the following:
These tips need to be merged – see the merge guidelines.
Tip 4 • Previous Tip • Next Tip
Created: February 24, 2001 Complexity: basic Author: Jamo.sp Minimum version: 5.7 Karma: 1339/384 Imported from: Tip#4
In insert mode, type the first couple of characters of a word, then press
Ctrl-N to insert the next matching word, or
Ctrl-P to insert the previous matching word.
This is particularly useful when entering the names of variables in a program.
The 'completeopt' option can control how completion occurs (for example, whether a menu is shown).
[edit] Comments
Even better is this script, that allows word completion by hitting the Tab key, the same you'd do on bash script#182.
Categories: Duplicate | Review | VimTip
