最近使用vim编程,经常需要很长一串英文单词,需要有一个word completion的功能,我
记得以前看到一个,到http://vim.sourceforge.net/站点看看,发现这个功能。
记得以前看到一个,到http://vim.sourceforge.net/站点看看,发现这个功能。
下载这个http://vim.sourceforge.net/scripts/download_script.php?src_id=2218
文件word_complete.vim,拷贝到plugin的目录
可以修改如下参数来调整工作模式:
(1) a minimum length of word to be completed
(2) the character (default ) used to accept the completion.
" Each time you type an alphabetic character, the script attempts
" to complete the current word. The suggested completion is selected
" in Select mode, so you can just type another character to keep going.
" Other options: to accept, to get rid of the completion,
" to leave Insert mode without accepting the completion,
" or to cycle through choices, to enter mode.