Skip to content

Commit 7e25a90

Browse files
committed
Add fallback :CompilerSet for older Vim versions.
1 parent 68617b5 commit 7e25a90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/typescript.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ if !exists("g:typescript_compiler_options")
1111
let g:typescript_compiler_options = ""
1212
endif
1313

14+
if exists(":CompilerSet") != 2
15+
command! -nargs=* CompilerSet setlocal <args>
16+
endif
17+
1418
let &l:makeprg = g:typescript_compiler_binary . ' ' . g:typescript_compiler_options . ' $* %'
1519

1620
CompilerSet errorformat=%+A\ %#%f\ %#(%l\\\,%c):\ %m,%C%m

0 commit comments

Comments
 (0)