开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜