Skip to content

Instantly share code, notes, and snippets.

@tcrayford
Created November 13, 2010 00:32
Show Gist options
  • Save tcrayford/674960 to your computer and use it in GitHub Desktop.
Save tcrayford/674960 to your computer and use it in GitHub Desktop.
lua_assert.vim
" Vim compiler file
" Language: Lua assertions
if exists("current_compiler")
finish
endif
let current_compiler = "lua_assert"
if exists(":CompilerSet") != 2
command -nargs=* CompilerSet setlocal <args>
endif
let s:cpo_save = &cpo
set cpo-=C
CompilerSet makeprg='lua'
CompilerSet errorformat=lua\:\ %f:%l:\ %m,\ %f:%l:\ %m,%-G%m,%-G
let &cpo = s:cpo_save
unlet s:cpo_save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment