当前位置:网站首页>Go-2-Vim IDE常用功能
Go-2-Vim IDE常用功能
2022-07-05 10:23:00 【hahyyy】
在 Go 项目开发中最常用的功能是(!!必会!!):
- gd 或者 ctrl + ] 跳转到对应的函数定义处 => 如果没有反应请等待一下,可能慢
- ctrl + o 跳转到前一个位置
- <F1> 打开帮助, :q 退出
- <F2> 打开目录窗口,再按会关闭目录窗口
- <F4> 最近文件列表, :q 退出
- <F6> 添加函数注释
其他:
- <F3> 展示tag,再按会关闭tag窗口
- <F5> 在 Vim 的上面打开文件查找窗口, :q 退出
- ctrl + t 标签退栈
- <F9> 生成供函数跳转的 tag
在代码间跳来跳去,将光标放在某个函数调用上,按 ctl + ] 就会跳到函数的定义处,按 ctrl + o 就会跳回来。
退出某模式的窗口,使用末行模式 :q即可
注意:在vim中粘贴文本,需要 :set paste 就能正常粘贴好了!
边栏推荐
猜你喜欢
AtCoder Beginner Contest 258「ABCDEFG」
Blockbuster: the domestic IDE is released, developed by Alibaba, and is completely open source!
【DNS】“Can‘t resolve host“ as non-root user, but works fine as root
How to plan the career of a programmer?
Solution of ellipsis when pytorch outputs tensor (output tensor completely)
ByteDance Interviewer: how to calculate the memory size occupied by a picture
5G NR系统架构
Apple 5g chip research and development failure? It's too early to get rid of Qualcomm
Comparative learning in the period of "arms race"
> Could not create task ‘:app:MyTest. main()‘. > SourceSet with name ‘main‘ not found. Problem repair
随机推荐
Excerpt from "sword comes" (VII)
Learning notes 5 - high precision map solution
C#实现获取DevExpress中GridView表格进行过滤或排序后的数据
Implementation of wechat applet bottom loading and pull-down refresh
WorkManager學習一
DDOS攻击原理,被ddos攻击的现象
报错:Module not found: Error: Can‘t resolve ‘XXX‘ in ‘XXXX‘
App各大应用商店/应用市场网址汇总
What is the most suitable book for programmers to engage in open source?
PHP solves the problems of cache avalanche, cache penetration and cache breakdown of redis
手机厂商“互卷”之年:“机海战术”失灵,“慢节奏”打法崛起
Coneroller执行时候的-26374及-26377错误
Solution to the length of flex4 and Flex3 combox drop-down box
到底谁才是“良心”国产品牌?
5g NR system architecture
php解决redis的缓存雪崩,缓存穿透,缓存击穿的问题
dsPIC33EP 时钟初始化程序
Error: module not found: error: can't resolve 'xxx' in 'XXXX‘
SAP ui5 objectpagelayout control usage sharing
【tcp】服务器上tcp连接状态json形式输出