INSTALL FROM
Place this in your .vimrc:
Plugin 'delimitMate.vim'
… then run the following in Vim:
:source %
:PluginInstall
For Vundle version < 0.10.2, replace Plugin
with Bundle
above.
使用
被动技能, 在编辑输入的时候触发
问题: 如何在结束输入后, 自动跳转到符号后面
触发后, 假设你要跳到补全后的符号后面继续编辑, 按Shift-Tab
# 1. 按", 自动补全
"|"
# 2.输入`hello`
"hello|"
# 3. 按 shift-tab, 跳到补全的符号后面, 还是insert-mode
"hello"|
最终配置
" 自动补全单引号,双引号等
Bundle 'Raimondi/delimitMate'
" for python docstring ", 特别有用
au FileType python let b:delimitMate_nesting_quotes = ['"']
" 关闭某些类型文件的自动补全
"au FileType mail let b:delimitMate_autoclose = 0