git config --global core.editor "vim"
echo "export EDITOR='vim'" >> ~/.profile
export EDITOR='vim'
export VISUAL=vim
# ~/.bashrc
export GIT_EDITOR='/Applications/MacVim.app/Contents/MacOS/Vim -g '
When I issue
git commit
then I get a macvim editor but on the command line I see this message
$ git commit
引用
Aborting commit due to empty commit message.
#work well
export GIT_EDITOR='/usr/local/bin/mate -w'
then you need
git config --global core.editor "mvim -f"
git config --global core.editor 'mvim -f --nomru -c "au VimLeave * !open -a iTerm"'
分享到:
相关推荐
git-vim, 用于Git的vim文件 git.vim简介git vim提供:在Vim中调用git函数的插件文件git显示的语法文件命令:gitadd <文件>如果没有指定,git添加 <文件> 或者当前文件。:gitcomm
gundo.vim, gundo.vim的git镜像 Gundo.vim 是用于可视化你的Vim撤销树的Vim插件。预览屏幕视频: http://screenr.com/M9l屏幕截图: 要求Vim 7.3 python的支持python 2.4 安装和使用查
git vim
git-comment.vim 曲洛洛尔
vim-git 在 vim 中使用 git 的技巧。怪罪映射应该在vimrc中完成,比如: noremap <unique> <leader> g : call git#BlameRange () 假设是\ (默认值),那么, 在正常模式下:输入\g ,你是在指责当前行在视觉模式下...
vim-extradite, 用于vim的git提交浏览器 扩展 fugitive.vim extradite.vim扩展 fugitive.vim.的git提交浏览器/git日志包装:Extradite 切换引渡缓冲区,换句话说,提交浏览器。 默认情况下,它在当前窗口中打开。 ...
Vim git-flow 格式 git-flow-format 是的插件,它格式化 Git Flow 分支名称以缩短前缀并在状态行中占用更少的空间。 这最好用几个例子来说明: feature/new_thing --> F:new_thing release/v1.0.0 --> R:v...
dotfiles, 一组 vim zsh git和tmux配置文件 thoughtbot接收器 要求将zsh设置为你的登录 shell:chsh -s $(which zsh)安装克隆到你的笔记本电脑上:git clone git://github.com/thou
vim-gitbranch:提供当前git存储库的分支名称
vim-mergetool:将Vim用作Git合并工具的有效方法
事情 这些说明会安装vim资料,以供我使用。 安装 git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim git clone git@github.... /VundleVim/Vundle.vim.git /command-
git config 配置 包含将git的默认编辑器修改为vim
vim-twiggy:Vim的Git分支管理
vim-git-斯蒂芬我的 VIM 配置基于
sudo apt-get remove vim-tiny sudo apt-get install vim # 调试插件 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ipdb git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle...
jeffy-vim 很强的一个vim插件及配置 但安装之后出现下划线,那就需要进行设置, 可以在shell终端输入命令:vi ~/.vimrc 然后找到set cursorline 那一行,直接通过dd命令删除掉,退出保存即可
完整版《像使用IDE一样使用VIM》,高清,带目录。希望对你们有用
怎么在windows环境下使用vim查看代码 ? 怎么在windows下使用git版本管理工具 ?在网上搜索会搜出个种各样的推荐,有人推荐直接下载一个windows...这个git工具基本满足了在windows下使用vim+ctags+git组合的基本要求。
关于VI的一些命令之类的,很值得收藏还有自己使用的哦。为了自己找着方便传上去看看