VIM TIP4

VimTip 4: Any word completion
#自动拼写补齐 ;谁能想想中文的输入补齐?×_×

Either when programming or writing, I tend to have some identifiers or words that I use all the time.
#在写字或编程的时候,总想弄点我总用的标识符来省事;懒惰是灵感的源泉!

By sheer accident, I noticed the 'ctrl-n' command, that will attempt to complete the word under the cursor.
#撞大运后发现 ctrl-n 是在自动补齐
Hit it once, and it will try to complete it with the first match in the current file.
#一次一个
If there is no match, it will (at least in the case of C code) search through all files included from the current one.
#若没有的话,在C 语言的环境下,它将会补齐库的名字
Repeated invocations#符咒。哇,魔法耶 will cycle through all found matches.
#重复ctrl-n 会循环来补齐

评论