NEVER do anything (add/remove/change) in /usr/share/vim/
or /etc/vim/
. NEVER.
Those are runtime files:
- they are needed by Vim and modifying them puts Vim into an unstable state,
- they can be updated at the next upgrade, wiping your customization or parts of it out,
- they are available machine-wide, user-specific settings belong to the user's
$HOME
.
ALWAYS do your customization in the ~/.vim/
directory and the ~/.vimrc
file.
/usr/share/vim/vim73/ftplugin/rb.vim
should be~/.vim/after/ftplugin/ruby.vim
.In that file, you should use
setlocal
instead ofset
because filetype-specific settings should be as precise and local as possible.What you have put in
/etc/vim/vimrc
should be in~/.vimrc
: you should remove those lines and return/etc/vim/vimrc
back to its original state.Whatever else you have done in
/etc/vim/
or/usr/share/vim
, revert it as soon as possible.