开发者

Vim command to go to the end of line number

开发者 https://www.devze.com 2023-03-22 14:38 出处:网络
I know the gg (or G) command in Vim, but is there a gg command combi开发者_开发问答ned with $? So basically a shortcut for that (if possible not a custom one).There isn\'t, AFAICT, except Ctrl+End is

I know the gg (or G) command in Vim, but is there a gg command combi开发者_开发问答ned with $? So basically a shortcut for that (if possible not a custom one).


There isn't, AFAICT, except Ctrl+End is like pressing G followed by $. You could remap gg and G (or any other key) to do what you want:

:noremap gg gg$
:noremap G G$
0

精彩评论

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