这篇文章主要说明了VIM的以下几个自动操作:
Word / pattern 自动完成行自动完成Dictionary word completionFile name completionFilling up words with similar meaning (Thesaurus word completion).所遇这些操作斗鱼Ctrl-x 相关。
Fig: Keyword completion in Vi / Vim using Ctrl-x Ctrl-n
Fig: Vim Whole line completion using Ctrl-x Ctrl-l
Typical usage for a programmers and administrators:
Repeat an existing line quickly in your file.Automatically fill first line of the function definition, when the function is already declared elsewhere in the same file.
Fig: Vim File name completion using Ctrl-x Ctrl-f
Using this feature you can choose alternate words with the same meaning for the word that you’ve just typed. Our previous article explains about the thesaurus features for your Vim editor.
修改 ~/.vimrc添加词典.
$ cat ~/.vimrcset dictionary+=/usr/share/dict/words
Fig: Vim Dictionary word completion using Ctrl-x Ctrl-k
转载于:https://www.cnblogs.com/miniwiki/archive/2010/09/08/1821292.html