0
点赞
收藏
分享

微信扫一扫

vim 常用的跳转方法


命令

描述

''(两个单引号)

跳到最后跳转的位置,来回切换,To the position before the latest jump

CTRL-O    

跳转列表中前一个位置,Go to [count] Older cursor position in jump list (not a motion command).

CTRL-I    

跳转列表中后一个位置,Go to [count] newer cursor  position in jump list (not a motion command).

'"(单引号双引号)

跳到文档上次关闭时光标所在位置,To the cursor position when last exiting the current buffer.  

'^ (引号上尖号)

跳到最后一次插入模式位置,To the position where the cursor was the last timewhen Insert mode was stopped. 

gi

跳到最后一次插入模式位置,并进入插入模式

'.(引号句点)

跳转到最后一次修改位置,Go to [count] older position in change list.

g,

跳转到前一次修改的位置,Go to [count] newer cursor position in change list.

g;

跳转到后一次修改的位置,Go to [count] older position in change list.

]m

下一个方法的开始位置,Go to [count] next start of a method 

]M

下一个方法的结束位置,Go to [count] next end of a method 

[m

上一个方法的开始位置,Go to [count] previous start of a method (

[M

上一个方法的结束位置,Go to [count] next end of a method 

H

跳到滚动条不变情况下的首行

M

跳到滚动条不变情况下的中间行

L

跳到滚动条不变情况下的尾行

 

举报

相关推荐

vim | vim多标签之间的跳转

vim跳转到文件末尾

Vim的常用指令

Vim常用指令

vim常用操作

vim常用技巧

Vim 常用指令

Vim 常用操作

0 条评论