这篇文章主要说明了VIM的以下几个自动操作:
1. Using Ctrl-x Ctrl-n 实现word自动完成
Fig: Keyword completion in Vi / Vim using Ctrl-x Ctrl-n 2. Ctrl-x Ctrl-l 实现行自动完成
Fig: Vim Whole line completion using Ctrl-x Ctrl-l
3. Ctrl-x Ctrl-f文件名自动完成
Fig: Vim File name completion using Ctrl-x Ctrl-f
4. Thesaurus Word CompletionUsing 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. 5. 用 Ctrl-x Ctrl-k自动完成字典修改 ~/.vimrc添加词典. $ cat ~/.vimrc set dictionary+=/usr/share/dict/words
Fig: Vim Dictionary word completion using Ctrl-x Ctrl-k |