Reputation: 45642
I find my directories littered with files named ;
(semicolon) because I keep pressing :w;
by accident. What's the easiest way to prevent this?
Upvotes: 1
Views: 61
Reputation: 9445
You can use the following:
:cabbr w; w
This will correct occurences of "w;" with "w" inside the command line.
See :h abbreviations
for details.
Upvotes: 5