我正在使用 vim 并发现 2 个非常有用的插件 - snipMate,它模仿了textmate的片段行为和supertab,它根据当前/其他缓冲区中的现有单词使用 tab 键切换和完成单词。我已经使用 .vimrc 文件打开了所有插件:filetype plugin on,但我只能让 supertab 工作。我怀疑由于 TAB 键用于两者,因此它们相互覆盖。有没有人遇到过这个问题并找到了解决方法?我还不是编辑我的 .vimrc 文件、映射键等方面的专家。谢谢。
编辑
当我尝试单独强制加载 snipMate.vim 时,出现以下错误:
Error detected while processing /home/sa125/.vim/plugin/snipMate.vim:
line 15:
E122: Function <SNR>18_RemoveSnippet already exists, add ! to replace it
line 73:
E122: Function snipMate#expandSnip already exists, add ! to replace it
line 112:
E122: Function <SNR>18_ProcessSnippet already exists, add ! to replace it
line 123:
E122: Function <SNR>18_Count already exists, add ! to replace it
line 169:
E122: Function <SNR>18_BuildTabStops already exists, add ! to replace it
line 211:
E122: Function snipMate#jumpTabStop already exists, add ! to replace it
line 258:
E122: Function <SNR>18_UpdatePlaceholderTabStops already exists, add ! to replace it
line 302:
E122: Function <SNR>18_UpdateTabStops already exists, add ! to replace it
line 321:
E122: Function <SNR>18_SelectWord already exists, add ! to replace it
line 385:
E122: Function <SNR>18_UpdateChangedSnip already exists, add ! to replace it
line 434:
E122: Function <SNR>18_UpdateVars already exists, add ! to replace it
Run Code Online (Sandbox Code Playgroud)
我做错了吗?...
我两者都很好地合作。
我的 .vimrc 中唯一相关的行是:
let g:SuperTabDefaultCompletionType = "context"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6075 次 |
| 最近记录: |