随笔分类 - vim
摘要:Go语言自带vim 的语法高亮文件。 http://www.golangtc.com/download 下载 go1.3.3.src.tar.gzgo1.3.3 (source only),解压缩 移动到/usr/local/ 1: 开启vim语法高亮vim ~/.vimrc ...
阅读全文
摘要:在mac中,如果使用 git commit –amend,会出现如下错误:error: There was a problem with the editor ‘vi’. Please supply the message using either -m or -F option.原...
阅读全文
摘要:fuzzyfinder.vim 可以替代四个插件, 不过这个插件也不是完美的,比如和favex.vim相比,它的收藏夹缺少对目录的支持和selectbuf.vim相比,它少了对多个buf的批量选择和处理 mru.vim -> fuzzyfinder.vim:FuzzyFinderMr...
阅读全文
摘要:VIM 多行注释:用 ctr+v 来选中要注释的那些行,并通过向下操作符 jjjj 来向下拉然后进行块选中,之后按 I 进行插入 #, // 等各种语言的注释符,最后按 ESC 退出的时候,会自动的注释同时选中的几行内容,保存即可。VIM 取消多行注释:用 ctr+v 来选中要取消...
阅读全文
摘要:x - delete current character dw - delete current word dd - delete current line 5dd - delete five linesd$ - delete to end of line d0 - de...
阅读全文
摘要:git 默认使用emacs作为编辑器,我们可以如下任何一种方式来使用VIM在git config中设置core.editor: git config --global core.editor "vim"在环境变量中设置GIT_EDITOR: export GIT_EDITOR=vim...
阅读全文
摘要:我们一般会从某个地方,比如网页或者其他的VIM中复制文本信息,但发现粘贴后,格式完全变了。 解决方法: 在执行前进行: :set paste 操作 执行后也可以关闭它: :set nopaste 如果想看它的详细情况,还可以: :h paste
阅读全文
摘要:多个窗口:sp ctrl + w + j => move to next window(先同时按下CTRL+W,之后放开所有按键,再按下J,即可) ctrl + w + k => move to pre window ctrl + w + q => quit wind...
阅读全文