vim g系列命令补充

发现一些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).

相关文章

解决方案:解决linux下vim乱码的情况:(修改vimrc的内容)全...
Linuxvi/vim所有的UnixLike系统都会内建vi文书编辑器,其他的...
      vim正则匹配:空行:/^$/  /^[\t]*$/注释...
$select-editorSelectaneditor.Tochangelater,run'sele...
上次手贱忘了保存,这次就简单做个备忘吧,把踩过的坑记一下...
Linux之文本编译器小结vim的优势所有的UNIX-LIKE习通都会内置...