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

5个好用的开发者Vim插件

发布时间:2019-03-02 09:08: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

(编辑:湖南网)

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

热点阅读