Alex Rivera | Logout

Is it possible to disable Replace mode in vim?

Asked 2010-11-05T21:43:45.277
16

Put simply, how can I completely disable Replace mode in vim? I never use Replace mode, but I sometimes end up in it by accident when re-entering Insert Mode. Naturally, I goof up by typing over a few characters before realizing I am in replace mode. So, is there any way to completely disable Replace mode, whether through configuration setup or however?

Edit
Report

1 Answer

3

Not sure if this is the best way, but you could map R and r to nothing in your .vimrc:

map R <C-V><C-V>
map r <C-V><C-V>

Edit: or this:

map R <Nop>
map r <Nop>
answered 2010-11-05T21:55:10.817

Your Answer