dan
dan

Reputation: 45642

I keep writing to `;` files by accident in Vim. Solution?

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

Answers (1)

yolenoyer
yolenoyer

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

Related Questions