gpt4 book ai didi

c++ - vundle 不能与 ftplugin 一起正常工作

转载 作者:行者123 更新时间:2023-11-28 05:44:08 32 4
gpt4 key购买 nike

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

但是当我打开一个 .cpp 类型的文件并因此使用 .vim/after/ftplugin/cpp.vim 时,唯一事件的(由 :VundleInstall 显示)插件是指定的在 cpp.vim 文件中。

我的错误是什么?

这是我的 vimrc:

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 文件:

" 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

....

我通过用点 (...) 替换它来缩短映射和一长串插件

最佳答案

万一有人遇到同样的问题:

在此thread您可以找到解决方案。

关于c++ - vundle 不能与 ftplugin 一起正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36559980/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com