Avoid Windows command prompt popups when possible.

Before this commit some Windows users saw the command prompt pop
up briefly, and/or the taskbar flicker, every time the plugin ran.

Now the plugin will use xolox's vim-shell and vim-misc, if they are
available and we are on Windows, to execute external commands.  Xolox's
clever plugins avoid the command prompt popup and taskbar flicker.

Windows users with those plugins installed can opt out by setting a
variable in their vimrc.

Many thanks to @suxpert for the initial code.
This commit is contained in:
Andy Stewart
2014-06-19 10:45:40 +02:00
parent 7ac9d059f8
commit a2aa2b1100
5 changed files with 47 additions and 7 deletions

View File

@@ -41,6 +41,7 @@ call s:set('g:gitgutter_sign_modified_removed', '~_')
call s:set('g:gitgutter_diff_args', '')
call s:set('g:gitgutter_escape_grep', 0)
call s:set('g:gitgutter_map_keys', 1)
call s:set('g:gitgutter_avoid_cmd_prompt_on_windows', 1)
call highlight#define_sign_column_highlight()
call highlight#define_highlights()