我试过这个.vimrc(它使用vundle):
autocmd FileType python Bundle 'ervandew/supertab'
和'ervandew/supertab'还在 python 文件中的“BundleList”中列出。它不起作用。我不知道为什么。也许我的 autocmd 命令是错误的?
我怀疑任务会消失。当我这样做时Bundle 'ervandew/supertab',我可以在 vim 中看到变量。例如:let SuperTabMappingForward显示SuperTabMappingForward <tab>. 但是使用 autocmd,我得到E121: Undefined variable: SuperTabMappingForward. 我放的时候也一样Bundle 'ervandew/supertab'一样~/.vim/ftplugin/python.vim
我的vim知识有限!