diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2018-02-06 11:15:01 +0800 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2018-02-06 11:15:01 +0800 |
commit | 18efda3933a867dd21df483bbfeae52231783d46 (patch) | |
tree | a2af3be10f2140314656d1c2e0e53ef1a1c1b6c6 /autoload/vifm | |
parent | bfc6ed9fbafc0758aaab228df70a3656368d8497 (diff) | |
download | vim-polyglot-18efda3933a867dd21df483bbfeae52231783d46.tar.gz vim-polyglot-18efda3933a867dd21df483bbfeae52231783d46.zip |
Update
Diffstat (limited to 'autoload/vifm')
-rw-r--r-- | autoload/vifm/globals.vim | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/autoload/vifm/globals.vim b/autoload/vifm/globals.vim new file mode 100644 index 00000000..f6f62022 --- /dev/null +++ b/autoload/vifm/globals.vim @@ -0,0 +1,31 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vifm') == -1 + +" common functions for vifm plugin related to globals +" Maintainer: xaizek <xaizek@posteo.net> +" Last Change: January 02, 2018 + +" Initializes global variables to defaults unless they are already set +function! vifm#globals#Init() + if !exists('g:vifm_exec') + let g:vifm_exec = 'vifm' + endif + + if !exists('g:vifm_exec_args') + let g:vifm_exec_args = '' + endif + + if !exists('g:vifm_term') + if has('win32') + if filereadable('C:\Windows\system32\cmd.exe') + let g:vifm_term = 'C:\Windows\system32\cmd.exe /C' + else + " If don't find use the integrate shell it work too + let g:vifm_term = '' + endif + else + let g:vifm_term = 'xterm -e' + endif + endif +endfunction + +endif |