vim makepkg
Date: 2019-12-20Last modified: 2023-03-07
Configurando comando com espaços
set makeprg=cd\ cmt\ &&\ make
" ou
let &makeprg = "cd cmt && make"
Baseado no tipo de arquivo
autocmd Filetype foo setlocal makeprg=/bin/foo_compiler %
Metatrader
" Vim compiler file
" Compiler: MQL4
" Maintainer: Me
" Last Change: 2017 Apr 20
if exists("current_compiler")
finish
endif
let current_compiler = "mql4"
CompilerSet makeprg=mkmql4\ %
let &errorformat='%f(%l\,%c) : %m'
let &cpo = s:cpo_save
unlet s:cpo_save
" vim: sw=2 ts=2 et
Onde o comando mkmql4 é
path="Z:${1//\//\\}"
wine /mt4/metaeditor.exe /compile: $path /log:"Z:\mt4\errors.log"