以 g 为前缀的快捷键
在 Normal 模式下按下 g
之后,如果你不记得快捷键出现按键延迟,那么快捷键导航将会提示你所有以 g
为前缀的快捷键。
快捷键 | 描述 |
---|---|
g# |
反向搜索光标下的词 |
g$ |
跳向本行最右侧字符 |
g& |
针对所有行重复执行上一次 “:s” 命令 |
g' |
跳至标签 |
g* |
正向搜索光标下的词 |
g+ |
newer text state |
g, |
newer position in change list |
g- |
older text state |
g/ |
stay incsearch |
g0 |
go to leftmost character |
g; |
older position in change list |
g< |
last page of previous command output |
g<Home> |
go to leftmost character |
gE |
end of previous word |
gF |
edit file under cursor(jump to line after name) |
gH |
select line mode |
gI |
insert text in column 1 |
gJ |
join lines without space |
gN |
visually select previous match |
gQ |
switch to Ex mode |
gR |
enter VREPLACE mode |
gT |
previous tag page |
gU |
make motion text uppercase |
g] |
tselect cursor tag |
g^ |
go to leftmost no-white character |
g_ |
go to last char |
g` |
跳至标签,等同于 g' |
ga |
打印光标字符的 ascii 值 |
gd |
跳至定义处 |
ge |
go to end of previous word |
gf |
edit file under cursor |
gg |
go to line N |
gh |
select mode |
gi |
insert text after ‘^ mark |
gj |
move cursor down screen line |
gk |
move cursor up screen line |
gm |
go to middle of screenline |
gn |
visually select next match |
go |
goto byte N in the buffer |
gs |
sleep N seconds |
gt |
next tag page |
gu |
make motion text lowercase |
g~ |
swap case for Nmove text |
g<End> |
跳至本行最右侧字符,等同于 g$ |
g<C-G> |
显示光标信息 |