Hello, after reading the Vim manual about CompilerSet and errorformat, I add a custom compiler for Inno Setup for Vim and add the iss.vim to the compiler folder, but Vim doesn't work as expected.
The error message looks like:
Error on line 37 in C:\Users\xxx\setup.iss: Column 1:
Identifier expected.
And the content of my iss.vim under Vim's compiler folder is:
" Vim compiler file
" Compiler: iscc (Inno Setup Compiler)
" Maintainer: Levski Weng <levskiweng@gmail.com>
" Last Change: 2014 Feb 26
if exists("current_compiler")
finish
endif
let current_compiler = "iss"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
CompilerSet makeprg=iscc\ %
CompilerSet errorformat=%EError\ on\ line\ %l\ in %f:\ Column\ %c:,%Z%m
When I compile a not well-formed .iss file with Vim using command ":make", the vim tells me that the shell return 2, which is the same as my compiling in Windows command line. But Vim doesn't jump to the error line then.
Is my errorformat wrong? And how to fix it?
Any suggestion will be appreciated.
P.S:
I've add the Inno Setup installation folder to the %PATH%, the compiler is iscc.exe
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment