加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

vim g系列命令补充

发布时间:2020-12-15 16:16:49 所属栏目:安全 来源:网络整理
导读:发现一些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# sam

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读