Skip to content

Commit 54c1a7c

Browse files
committed
memo: coc.nvim 快捷键说明
1 parent 52cbcf7 commit 54c1a7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

memo/memo.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,12 +1059,12 @@ vim-go/coc.nvim plugin Tips
10591059
\ }
10601060
10611061
1062-
" 以下是 coc.nvim 官方示例定义的快捷键
1062+
" 以下是 coc.nvim 官方示例定义的快捷键。用好这几个快捷键可以给开发带来极大便利
10631063
" 跳转到变量定义。normal 模式下在一个变量名上按一下 gd 即可跳转到定义位置,然后ctrl-o 可以快速返回原位置
10641064
nmap <silent> gd <Plug>(coc-definition)
10651065
" 跳转到值的类型定义,或者跳转到函数的返回值类型。在你想要快速查找一个类型的结构的时候非常有用
10661066
nmap <silent> gy <Plug>(coc-type-definition)
1067-
" 跳转到 interface 接口的对应实现。比如查看go里一个 interface 被哪些 struct 实现了
1067+
" 跳转到 interface 接口的对应实现。比如查看go里一个 interface 被哪些 struct 实现了。如果在 struct 名字上使用可以找到当前 struct 实现了哪些 interface
10681068
nmap <silent> gi <Plug>(coc-implementation)
10691069
" 打开当前变量、函数等被引用的列表。比如看一个 函数 在哪些地方使用了
10701070
nmap <silent> gr <Plug>(coc-references)

0 commit comments

Comments
 (0)