How can one use the lowercase marks as global buffers too?
The marks are a-z, so there's really no need for me to have the lowercase ones reserved for buffer-only marks, since I don't have more than a few marks / buffer.
So I will almost always want to have global marks, but ma
is so much easier to type than mA
, same goes for 'a
vs 'A
.
You can just map them by the look of it. Eg in your vimrc
nnoremap ma mA
nnoremap 'a 'A
nnoremap `a 'A
Although I suspect this approach might trip up plugins that aren't using nnoremap.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With