Let's say I load up a python file in vim. A quick check of :scriptnames
shows that my ~/.vim/ftplugin/python/python.vim
file loads as expected. One of the commands in this file highlights all characters that are past the 80th column. Now lets say I open a C++ file in another buffer (therefore running ~/.vim/ftplugin/cpp/cpp.vim
). Although the new commands are executed, the settings in python.vim
still apply; therefore characters are highlighted past the 80th column in my C++ file.
Is there anyway to make filetype commands not cumulative like this? I have filetype plugin indent on
in my .vimrc
.