Edit:
Droggl asked how to disable vim-gutter when viewing log files because of slowness. I've come up with the following solution which seems like it should work.
Assuming your log files end in *.log, add the following to your ~/.vimrc.
autocmd BufNewFile,BufReadPost *.log setlocal filetype=log filetype plugin onThen make an entry like so in ~/.vim/ftplugin/log.vim
:GitGutterDisableHope that helps!
2 comments:
The diff hunk navigation feature is also really helpful to me, to quickly navigate between the parts of a file I'm modifying for a particular commit. I believe the bindings are on by default and are ]h to go to next hunk and [h to go to previous hunk.
Gitgutter is awesome, thanks :)
I found though that it can terribly slow down vim, e.g. when viewing logfiles (that are of course not checked in in git).
Did you find a way to automatically enable/disable it e.g. on file ending?
Post a Comment