4

Is it possible to change that somehow? Either to make Vim go one symbol further in normal mode, or one symbol less in visual mode?

10

You can make $ go one symbol further in normal mode by enabling setting virtualedit=onemore and remapping $ to g$.

:set virtualedit=onemore
:nnoremap $ g$

As @statox mentions in the comments

You can also make $ go one symbol less in visual mode with the following mapping:

:vnoremap $ $h 
  • 3
    Just a note to complete the answer: OP also mentioned the possibility to go one symbol less in visual mode which can be done with :vnoremap $ $h – statox Dec 8 '15 at 23:14
4

As far as I know, there's no built-in way to stop visual mode from being inclusive and normal mode from being exclusive.

One could probably remap everything to work like that but that sounds like a bad idea to me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.