首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不正确地使用ftplugin

不正确地使用ftplugin
EN

Stack Overflow用户
提问于 2016-04-11 21:53:48
回答 1查看 342关注 0票数 0

我开始使用ftplugin。这基本上是可行的,除了捆绑。如果我用一个没有特定文件类型的文件启动gvim,那么我可以使用我的所有插件(:VundleInstall列出了.vimrc中指定的所有插件)

但是,当我以.cpp类型打开一个文件,从而使用. .vim/after/ftplugin/cpp.vim时,唯一的活动插件(如:VundleInstall所示)是cpp.vim文件中指定的插件。

我犯了什么错?

这是我的视频:

代码语言:javascript
复制
syntax on
set nocompatible
set t_Co=256

filetype plugin indent on

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'

" syntax check during writing
Plugin 'scrooloose/syntastic'

....

"swap two panes in an open session
Plugin 'wesQ3/vim-windowswap'

" All of your Plugins must be added before the following line
call vundle#end()            " required

....

这是我的cpp.vim文件:

代码语言:javascript
复制
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

"plugin to switch easily between header and source
Plugin 'derekwyatt/vim-fswitch'

" All of your Plugins must be added before the following line
call vundle#end()            " required

....

我缩短了映射和插件的长列表,用点替换它(.)

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-04-14 07:48:26

如果有人遇到同样的问题:

在这个线程中,您可以找到解决方案。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36559980

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档