22 lines
481 B
VimL
22 lines
481 B
VimL
function CompileDoc()
|
|
:execute(":w!")
|
|
:execute(":!compile \"%\"")
|
|
endfunction
|
|
|
|
function CompileDocNoOutput()
|
|
:execute(":w!")
|
|
:execute(":silent !compile \"%\"")
|
|
endfunction
|
|
|
|
function CompiledOpen()
|
|
:execute(":silent !open-compiled \"%\"")
|
|
endfunction
|
|
|
|
function CompileDocAndOpen()
|
|
call CompileDocNoOutput()
|
|
call CompiledOpen()
|
|
endfunction
|
|
|
|
command CompileDoc call CompileDoc()
|
|
command CompileOpen call CompiledOpen()
|
|
command CompileDocAndOpen call CompileDocAndOpen()
|