An aside question; what's the deal with "pathogen"? I've been using the "/bin/cp" command for years installing vim plugins and it's worked remarkably well; requiring just about 1 invocation on average... What problem does that thing solve?
I have 5 separate computers that I run vim on. Manually installing and updating is a huge pain. I keep my .vimrc in git to keep them all synchronized.
Vim Git Gutter
111–119 of 119 posts
Re: Vim Git Gutter
#112I'm really impressed with this -- I would love to see this see functionality for other VCSes (subversion, etc) so that I could use it with my non-git projects. The vimscript looks pretty clean -- maybe I have a new weekend project ahead of me. edit: just a quick hack for a "vim svn gutter": https://github.com/prg318/vim-gitgutter The code is really clean and it would be fairly trivial to adopt this for use with any o…
svndiff ( http://www.vim.org/scripts/script.php?script_id=1881 ) works with SVN, Git and others. Both sign-diff ( http://www.vim.org/scripts/script.php?script_id=2712 ) and changesPlugin ( http://www.vim.org/scripts/script.php?script_id=3052 ) are VCS-agnostic: they show differences between the saved state and the current state.
Thanks!
Re: Vim Git Gutter
#113 highlight clear signcolumn
let g:gitgutter_enabled = 0
nmap gu :GitGutterToggle
I prefer my buffers to start with it disabled by default and toggle as needed.Re: Vim Git Gutter
#114Is there any way to make it so that the gutter is always present? There's a bit of a noticeable jump to include it when I save a file, it's sort of annoying me. I tried let g:gitgutter_enabled = 1 but that does seem to work. I'll have a poke through the source.
Re: Vim Git Gutter
#115Earlier quoted context omitted.
Alternatively, using `hi! link SignColumn LineNr` will ensure that styling the user has applied to the more commonly used line numbering column will match the sign column used by vim-gitgutter.
I hate it when plugins try to override my colorscheme, so I would highly discourage adding this to the plugin. To account for colorschemes that don't add colors for SignColumn without angering users, use the `default` keyword without the bang. Some other things to consider: The sign column and line numbers are separated by the fold column. The default colorscheme has SignColumn and FoldColumn the same (Cyan or DarkBl…
Re: Vim Git Gutter
#116Seems to add noticeable latency (1+ seconds) to my save, each time. Vim is unresponsive during this time Is this expected? I save quite frequently, it's an unconscious reflex at this point.
Yes, the plugin runs the diff command when a document is saved/loaded. See the discussion here: http://news.ycombinator.com/item?id=5326654
map gd :!cd %:p:h && GIT_PAGER='' git diff HEAD -- %:tRe: Vim Git Gutter
#117Eclipse pretty much does this out of the box. I guess so do IntelliJ and Visual Studio. You can also display the name of the last person to change a line in the same position (ie. svn/git blame), which is very useful to quickly find out who to talk to regarding a section of a file. The commit message is displayed on mouseover.
Also gotta love the ability to open commits in Github in IntelliJ and the other JetBrains IDE's. Great for sending a link to a line of code.
Re: Vim Git Gutter
#118Earlier quoted context omitted.
svndiff ( http://www.vim.org/scripts/script.php?script_id=1881 ) works with SVN, Git and others. Both sign-diff ( http://www.vim.org/scripts/script.php?script_id=2712 ) and changesPlugin ( http://www.vim.org/scripts/script.php?script_id=3052 ) are VCS-agnostic: they show differences between the saved state and the current state.
Thank you! I wasn't aware that these plugins existed already. While I was getting excited to get my "vim -D" on to get the script in the OP to work with svn, I might just work one of these plugins into my workflow. Thanks!