History Report a problem
Article Edit this page Discussion

Any word completion

From Vim Tips Wiki

(Redirected from VimTip4)
Jump to: navigation, search
 

[edit] Duplicate tip

This tip is very similar to the following:

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

Tip 4Previous TipNext 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.


Rate this article:

Share this article:

Hubs Highlights International Sites Wikia messages
Entertainment
Gaming
Cartoons & Comics
Science Fiction
Hobbies
Sports
See all...
Grand Theft Auto
Terminator Wiki
Legend of Zelda Wiki
Flash Gordon
Everquest II Wiki
Yo-Yo Wiki
German
Spanish
Chinese
Japanese
More...
Wikia is hiring for several open positions
Send this article to a friend
"Any word completion"
 
 
Hi!

I thought you'd like this page from Wikia!

http://vim.wikia.com

Come check it out!
Send confirmation