scripts: Remove compile script
Never used the compile script for years now, and I neither see that changing nor the files being of any use anymore. They were something I whipped up when I first started getting into Linux and bash scripting (and as such a little nostalgic I suppose) but nothing that has actual purpose anymore.
This commit is contained in:
parent
0a867ee992
commit
d09584e690
4 changed files with 0 additions and 132 deletions
|
|
@ -207,15 +207,6 @@ map.n.nore['<localleader>ZG'] = ':setlocal spell! spelllang=de_de<cr>'
|
|||
map.i.nore['<c-s>'] = '<C-G>u<Esc>[s1z=`]a<C-G>u'
|
||||
map.n.nore['<localleader>s'] = 'ms[s1z=`s'
|
||||
|
||||
-- pp to comPile a document (or file, works for some languages like go/python/c)
|
||||
-- o to open the resulting document (mostly for pdfs)
|
||||
-- po to comPile *and* open a doc
|
||||
-- and all the same in uppercase for verbose output
|
||||
map.n.nore['<leader>dp'] = ':DocCompile<cr>'
|
||||
map.n.nore['<leader>dP'] = ':DocCompile!<cr>'
|
||||
map.n.nore['<leader>do'] = ':DocOpen<cr>'
|
||||
map.n.nore['<leader>dO'] = ':DocOpen!<cr>'
|
||||
|
||||
-- PLUGIN: easy-align
|
||||
-- Start interactive EasyAlign in visual mode (e.g. vipga)
|
||||
map.x['ga'] = '<Plug>(EasyAlign)'
|
||||
|
|
|
|||
|
|
@ -1,25 +0,0 @@
|
|||
function s:_compile(verbose, ...)
|
||||
:execute(":w!")
|
||||
if a:verbose
|
||||
execute "!" . "compile" . " " . "\"%:p\"" . " " . join(a:000)
|
||||
else
|
||||
silent execute "!" . "compile" . " " . "\"%:p\"" . " " . join(a:000)
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function s:_open(verbose, ...)
|
||||
if a:verbose
|
||||
execute "!" . "open-compiled" . " " . "\"%\"" . " " . join(a:000)
|
||||
else
|
||||
silent execute "!" . "open-compiled" . " " . "\"%\"" . " " . join(a:000)
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function s:_compileopen(verbose, ...)
|
||||
call s:_compile(a:verbose, join(a:000))
|
||||
call s:_open(a:verbose, join(a:000))
|
||||
endfunction
|
||||
|
||||
command -bang -nargs=* DocCompile call s:_compile(<bang>0, <f-args>)
|
||||
command -bang -nargs=* DocCompileOpen call s:_compileopen(<bang>0, <f-args>)
|
||||
command -bang -nargs=* DocOpen call s:_open(<bang>0, <f-args>)
|
||||
Loading…
Add table
Add a link
Reference in a new issue