6

How can I reverse the capitalization convention of marks in vi/vim?

Normally a lower-case mark like "a" means it is local to the current file, but upper case marks like "A" are global to the session. Since I normally use only global marks, I want the lower case to be the global marks. In other words I want to reverse the default convention.

1 Answer 1

4

The use of uppercase letters as global marks is persistent and, in general, you cannot change this.

But for each letter, you can:

nnoremap ma mA
nnoremap `a `A
nnoremap 'a 'A

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .