How to use lowercase marks as global in vim?
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 wan开发者_运维问答t 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.
精彩评论