From bc2f74b4f255a41002e494ec2346789d9ec56210 Mon Sep 17 00:00:00 2001 From: Markus Braun Date: Tue, 5 Jul 2011 08:44:14 +0200 Subject: [PATCH] Check for cmd.com and command.com to check for windows system. --- plugin/gnupg.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/gnupg.vim b/plugin/gnupg.vim index 02e6e25..a5c74c0 100644 --- a/plugin/gnupg.vim +++ b/plugin/gnupg.vim @@ -117,7 +117,7 @@ fun s:GPGInit() " setup shell environment for unix and windows let s:shellredirsave=&shellredir let s:shellsave=&shell - if (match(&shell,"cmd.exe")) + if (match(&shell,"\\(cmd\\|command\\).exe") >= 0) " windows specific settings let s:shellredir = '>%s' let s:shell = &shell