VIM TIP11

In Insert mode, press the Ctrl-p or Ctrl-n key to complete part of a word that has been typed. 在插入模式下,Ctrl-pCtrl-n 可以补全已经录入单词 This is useful while typing C programs to complete long variable and function names. This also helps in avoiding typing mistakes. 很有用在编程过程中有长的变量或函数名时,也可以有效的避免拼写错误 Note that using the 'complete' option, you can complete keywords defined in one of the include files, tag file, etc. 值得注意的时,使用补全模式,可以补全在include文件或tag文件中的单词 To get more help on this, use 想知道更多,请查阅帮助 :help i_Ctrl-N :help i_Ctrl-P :help ins-completion :help complete

Technorati Tags:

评论