From 491f5a9e9b9edbef3e281397a1e7fd3ac5b6e3a9 Mon Sep 17 00:00:00 2001 From: Justin Donaldson Date: Sun, 7 Jul 2013 14:36:22 -0700 Subject: [PATCH] redirect output to dev null for syntax checking --- syntax_checkers/hss/hss.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/syntax_checkers/hss/hss.vim b/syntax_checkers/hss/hss.vim index 5e39477a..badb2573 100644 --- a/syntax_checkers/hss/hss.vim +++ b/syntax_checkers/hss/hss.vim @@ -20,10 +20,16 @@ function! SyntaxCheckers_hss_hss_IsAvailable() return executable('hss') endfunction +if has('win32') + let s:dev_null = 'NUL' +else + let s:dev_null = '/dev/null' +endif + function! SyntaxCheckers_hss_hss_GetLocList() let makeprg = syntastic#makeprg#build({ \ 'exe': 'hss', - \ 'args' : '-output /dev/null', + \ 'args' : '-output ' . s:dev_null, \ 'fname': syntastic#util#shescape(expand('%')), \ 'filetype': 'hss', \ 'subchecker': 'hss' })