我在网上看到一个针对vim的gitrebase插件代码片段,它可以让你轻松地在git交互式rebase中切换
我已经按照要求完成了所有步骤,但是当我执行
我需要做什么才能使它生效?
插件在此处,如果有用的话: https://bloerg.net/2013/12/04/a-tiny-vim-plugin-for-interactive-git-rebasing.html
fixup|squash|pick
等选项。帖子建议将文件放入名为~/.vim/after/ftplugin
的目录中,并将其命名为gitrebase.vim
。我已经按照要求完成了所有步骤,但是当我执行
git rebase -i HEAD~x
时,插件没有被加载。我需要做什么才能使它生效?
插件在此处,如果有用的话: https://bloerg.net/2013/12/04/a-tiny-vim-plugin-for-interactive-git-rebasing.html
vimrc
ж–Ү件дёӯж·»еҠfiletype plugin indent on
гҖӮ - romainl:Cycle
命令,用于处理gitrebase
文件类型。所以你只需要在~/.vim/after/ftplugin/gitrebase.vim
文件中添加映射即可。例如:nnoremap <buffer> <silent> S :Cycle<CR>
。 - Peter Rincker