Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Esc>:w<Leader>s
- <Esc><Leader>s
- function! marslofunc#RunResult()
- let mp = &makeprg
- let ef = &errorformat
- let exeFile = expand("%:t")
- exec "w"
- if "python" == &filetype
- setlocal makeprg=python -u
- elseif "perl" == &filetype
- setlocal makeprg=perl
- elseif "ruby" == &filetype
- setlocal makeprg=ruby
- elseif "autohotkey" == &filetype
- setlocal makeprg=AutoHotkey
- endif
- set efm=%C %.%#,%A File "%f"\, line %l%.%#,%Z%[%^ ]%\@=%m
- silent make %
- copen
- let &makeprg = mp
- let &errorformat = ef
- endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement