Vim Tips Wiki
(Clean + removed redundant comments)
(Flag duplicate.)
Line 1: Line 1:
  +
{{Duplicate|11}}
 
{{review}}
 
{{review}}
 
{{Tip
 
{{Tip
Line 20: Line 21:
   
 
== Comments ==
 
== Comments ==
TODO: Merge with [[VimTip11]]
 
 
----
 
 
Even better is this script, that allows word completion by hitting the TAB key, the same you'd do on bash:
 
Even better is this script, that allows word completion by hitting the TAB key, the same you'd do on bash:
 
http://www.vim.org/scripts/script.php?script_id=182 i.e. [/scripts/script.php?script_id=182 vimscript #182]
 
http://www.vim.org/scripts/script.php?script_id=182 i.e. [/scripts/script.php?script_id=182 vimscript #182]

Revision as of 03:54, 2 August 2007

Duplicate tip

This tip is very similar to the following:

These tips need to be merged – see the merge guidelines.

Previous TipNext Tip

Tip: #4 - Any word completion

Created: February 24, 2001 15:48 Complexity: basic Author: Jamo.sp--AT--lorenz.lucs.lu.se 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).

Comments

Even better is this script, that allows word completion by hitting the TAB key, the same you'd do on bash: http://www.vim.org/scripts/script.php?script_id=182 i.e. [/scripts/script.php?script_id=182 vimscript #182]