发现一些g系列的命令 以前没有注意到 大家可以看看
gd will take you to the local declaration.
gD will take you to the global declaration.
g* search for the word under the cursor (like *, but g* on 'rain' will find words like 'rainbow').
g# same as g* but in backward direction.
gg goes to the first line in the buffer (or provide a count before the command for a specific line).
G goes to the last line (or provide a count before the command for a specific line).
See alsoEdit
gf will go to the file under the cursor
g] and other commands will jump to a tag definition (a tag can be a function or variable name, or more).]
gu gU 大小写转换
本文介绍了一系列Vim编辑器中的G系列命令,包括gd(跳转到局部声明)、gD(跳转到全局声明)、g*(搜索光标下单词)、g#(反向搜索光标下单词)、gg/G(定位首尾行)、gf(跳转到文件)、g](跳转到标签定义)。此外还提到了gu/gU用于改变大小写。
725

被折叠的 条评论
为什么被折叠?



