0
ftpluginを使い始めました。バンドル以外は基本的に動作します。特定のファイルタイプを持たないファイルでgvimを起動すると、すべてのプラグインを使用できます(VundleInstallは.vimrcで指定されているすべてのプラグインをリストします)ftpluginでvundleが正しく動作しない
しかし、.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
....
私はそれを交換することによって、マッピング、およびプラグインの長いリストを短縮しましたドット(...)