/** * VIM 补齐 **/ // 首先补齐是在插入模式才有的,vim 补齐一般是以 ^X 开头, ^N, ^P 分别选择补齐列表中下一个,上一个; 重复按补齐方式(^X 后面的按键)会选择补齐列表中下一个; ^E 取消补齐 // ^N 通过 complete 选择补齐列表来源,来源用一个字母表示,complete 选项值以逗号分割 查看 complete 选项, :h i_^N // ^X ^F 文件名补齐 // ^X ^L 补齐整行,该补齐方式在当前文件中向前查找与当前输入一致的整行,然后用匹配的一行补齐 // ^X ^N 文件中关键字补齐,在当前文件中向前查找当前光标前的关键字 // ^X ^K 字典补齐,search forward through the files defined by the 'dictionary' option for keywords matching the keyword in front of the cursor // ^X ^T 同义字典补齐,search forward through the files defined by the 'thesaurus' option for keywords matchingurus the keyword in front of the cursor // ^X ^I search forward through the current file and included files for keywords matching the keyword in front of the cursor // ^X ^] search forward through the current file and included files for kewwords matching tags // ^X ^D Completion by macro and definition names // ^X ^V Completion method with vim commands // ^X ^U 使用自定义补齐函数进行补齐 // ^X ^O 和 ^X ^O 差不多 // ^X ^S