VIM 移动命令总结备忘

{ 跳转到上一个段落(空行)
} 跳转到下一个段落(空行)
[{ 跳转到上一个位于第一列的'{'
]}

% : 匹配括号移动,包括 (, {, [. (需要把光标先移到括号上)

^ <--> g_
0 <---> $

b w B W

Move back by token/forward by token/back by word/forward by word.  (A token is a sequence of letters, digits, and underscores. For the capital letter variations, a word consists of anything that’s not whitespace.) Faster than holding down a simple directional key.


ctrl+u ctrl+d

Basically Page Up and Page Down, but moves by half a screenful and doesn’t lose your cursor position.


H M L

Move to the top/middle/bottom of the screen (i.e. High/Middle/Low). A good first step in getting approximately to where you want to go.


* 和 #:  匹配光标当前所在的单词,移动光标到下一个(或上一个)匹配单词(*是下一个,#是上一个)

n N

Repeat the last find command forward/backward.


``

(That’s two back-ticks). Jump back to where you just were. This will jump back and forth between the same two locations if you keep pressing it.


g;  切换到上次修改的位置

:ju -> 显示所有的可以跳跃的地方 (print jump list)

参考引用:
[1]https://spin.atomicobject.com/2016/04/19/vim-commands-cheat-sheet/
[2]http://coolshell.cn/articles/5426.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值