gina: Enable gina.vim, only for Vim > 7.4.1898
gina.vim needs the `<mods>` feature to work correctly. Therefore check that Vim has at least patch 7.4.1898 included before using and accessing the gina plugin. fixes #1984
This commit is contained in:
parent
6eda2735aa
commit
62ec219601
|
@ -34,7 +34,8 @@ let s:filetype_overrides = {
|
||||||
\ 'vimshell': ['vimshell','%{vimshell#get_status_string()}'],
|
\ 'vimshell': ['vimshell','%{vimshell#get_status_string()}'],
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
if exists(':Gina')
|
if exists(':Gina') && (v:version > 704 || (v:version == 704 && has("patch1898")))
|
||||||
|
" Gina needs the Vim 7.4.1898, which introduce the <mods> flag for custom commands
|
||||||
let s:filetype_overrides['gina-status'] = ['gina', '%{gina#component#repo#preset()}' ]
|
let s:filetype_overrides['gina-status'] = ['gina', '%{gina#component#repo#preset()}' ]
|
||||||
let s:filetype_overrides['diff'] = ['gina', '%{gina#component#repo#preset()}' ]
|
let s:filetype_overrides['diff'] = ['gina', '%{gina#component#repo#preset()}' ]
|
||||||
let s:filetype_overrides['gina-log'] = ['gina', '%{gina#component#repo#preset()}' ]
|
let s:filetype_overrides['gina-log'] = ['gina', '%{gina#component#repo#preset()}' ]
|
||||||
|
|
Loading…
Reference in New Issue