Ich fing an, das ftplugin zu verwenden. Dies funktioniert grundsätzlich, außer für Bündel. Wenn ich gvim mit einer Datei starte, die keinen bestimmten Dateityp hat, kann ich alle meine Plugins verwenden (: VundleInstall listet alle in der .vimrc angegebenen Plugins auf)vundle funktioniert nicht richtig mit ftplugin
Aber wenn ich eine Datei mit einem .cpp Typ öffne und somit den .vim/after/ftplugin/cpp.vim die einzigen aktiven Plugins (angezeigt von: VundleInstall) sind diejenigen, die in der Datei cpp.vim angegeben sind.
Was ist mein Fehler?
Hier ist meine 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
....
Und das ist meine cpp.vim Datei:
" 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
....
ich die Zuordnungen verkürzt haben, und die lange Liste der Plugins indem sie sie mit der Ersetzung Punkte (...)