mirror of
https://github.com/Ascyii/vim-gnupg.git
synced 2026-01-01 06:14:24 -05:00
Unix/windows specific settings done right :-)
This commit is contained in:
@@ -198,16 +198,16 @@ function s:GPGInit()
|
|||||||
let s:shellredirsave = &shellredir
|
let s:shellredirsave = &shellredir
|
||||||
let s:shellsave = &shell
|
let s:shellsave = &shell
|
||||||
if (has("unix"))
|
if (has("unix"))
|
||||||
" windows specific settings
|
|
||||||
let s:shellredir = '>%s'
|
|
||||||
let s:shell = &shell
|
|
||||||
let s:stderrredirnull = '2>null'
|
|
||||||
else
|
|
||||||
" unix specific settings
|
" unix specific settings
|
||||||
let s:shellredir = &shellredir
|
let s:shellredir = &shellredir
|
||||||
let s:shell = 'sh'
|
let s:shell = 'sh'
|
||||||
let s:stderrredirnull = '2>/dev/null'
|
let s:stderrredirnull = '2>/dev/null'
|
||||||
let s:GPGCommand = "LANG=C LC_ALL=C " . s:GPGCommand
|
let s:GPGCommand = "LANG=C LC_ALL=C " . s:GPGCommand
|
||||||
|
else
|
||||||
|
" windows specific settings
|
||||||
|
let s:shellredir = '>%s'
|
||||||
|
let s:shell = &shell
|
||||||
|
let s:stderrredirnull = '2>nul'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" find the supported algorithms
|
" find the supported algorithms
|
||||||
|
|||||||
Reference in New Issue
Block a user