加入收藏 | 设为首页 | 会员中心 | 我要投稿 核心网 (https://www.hxwgxz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 建站 > 正文

5个好用的开发者Vim插件

发布时间:2019-02-26 14:04:25 所属栏目:建站 来源:Ricardo Gerardi
导读:通过这 5 个插件扩展 Vim 功能来提升你的编码效率。 我用 Vim 已经超过 20 年了,两年前我决定把它作为我的首要文本编辑器。我用 Vim 来编写代码、配置文件、博客文章及其它任意可以用纯文本表达的东西。Vim 有很多超级棒的功能,一旦你适合了它,你的工作

现在你可以用 :Gcommit 来提交修改了。Vim Fugitive 会打开另一个分割窗口让你输入提交信息:

  1.   1 vim-5plugins: Updated test1.go example file
  2.   2 # Please enter the commit message for your changes. Lines starting
  3.   3 # with '#' will be ignored, and an empty message aborts the commit.
  4.   4 #
  5.   5 # On branch master
  6.   6 # Your branch is up to date with 'origin/master'.
  7.   7 #
  8.   8 # Changes to be committed:
  9.   9 #       modified:   vim-5plugins/examples/test1.go
  10.  10 #

:wq 保存文件完成提交:

  1. [master c3bf80f] vim-5plugins: Updated test1.go example file
  2.  1 file changed, 2 insertions(+), 2 deletions(-)
  3. Press ENTER or type command to continue

然后你可以再用 :Gstatus 检查结果并用 :Gpush 把新的提交推送到远程。

  1.   1 # On branch master
  2.   2 # Your branch is ahead of 'origin/master' by 1 commit.
  3.   3 #   (use "git push" to publish your local commits)
  4.   4 #
  5.   5 nothing to commit, working tree clean

Vim Fugitive 的 GitHub 项目主页有很多屏幕录像展示了它的更多功能和工作流,如果你喜欢它并想多学一些,快去看看吧。

接下来?

这些 Vim 插件都是程序开发者的神器!还有另外两类开发者常用的插件:自动完成插件和语法检查插件。它些大都是和具体的编程语言相关的,以后我会在一些文章中介绍它们。

你在写代码时是否用到一些其它 Vim 插件?请在评论区留言分享。

【责任编辑:庞桂玉 TEL:(010)68476606】
点赞 0

(编辑:核心网)

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

热点阅读