Description of problem:
Vim is not supposed to have default abbreviations/autocorrects, but they are
present (and changing my c++ comments!).
Locale issue - Whilst editing a c++ source file in vim I noticed when I entered
//Executes "set colour"
it was changed to
//Executes "set color"
Which is not quite right. Clearing the vim abbreviation list (:help abb) solves
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.at a shell type "vim file.cpp"
Vim is not supposed to have default abbreviations. see :help abb "There are no
default abbrevations in vim"
please try again with vim-7.1.211 from FC7-updates. I think this was caused by a
comment plugin which has been enabled for some time until I removed it.
I have tested this in FC9, it is still there! However this problem is more major
in this case - Now it actually modifies your *source code* whilst you are
for example make a new .cpp file and save it.
then re-open it and type
using namespace std;
const char *wtih = "weak tih";
cout << wtih << endl;
This will cause the code to change, where the wtih variable will be renamed to
with! If you are depending on external headers your code wont compile - or even
worse if there is a with and a wtih named variable, then the wrong one will be
referenced if you dont notice the as-you-type substitution.
I've checked the F-7 and F-9 sources and there's no abbreviation for p.e. colour.
The :ab command on a F-9 vim shows 'No abbreviation found'.
Please check your ~/.vimrc, ~/.vim/* and your /etc/vimrc for abbreviations. The
command ':verbose abbreviate' will tell you exactly in which file those
abbreviations have been set.