3 ms·
Seems 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 u
by finnh 14y ago
Seems 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.
- jaytaylor 14y agoOut of curiosity, what is the line count on the file where this is happening?
- shuzchen 14y agoYes, the plugin runs the diff command when a document is saved/loaded. See the discussion here: http://news.ycombinator.com/item?id=5326654 http://news.ycombinator.com/item?id=5326654
- finnh 14y agoFigured as much. I would argue for/request forking that "git diff" command and only processing its output in the VIM process, but for the moment I'll stick with my trusty ",gd" command: map <leader>gd :!cd %:p:h && GIT_PAGER='' git diff HEAD -- %:t<CR><CR>