+ Added run in octave shortcut
This commit is contained in:
parent
eb693a8e70
commit
ba50738426
5 changed files with 12 additions and 5 deletions
|
@ -33,7 +33,7 @@ endif
|
|||
autocmd FileType sh map <buffer> <F9> :w<CR>:vs<CR>:ter sh "%"<CR>
|
||||
autocmd FileType sh imap <buffer> <F9> <esc> :w<CR>:vs<CR>:ter sh "%"<CR>
|
||||
|
||||
" c (untested)
|
||||
" c
|
||||
autocmd FileType c map <buffer> <F9> :w<CR>:vs<CR>:ter gcc "%" -o %< && ./%< && read<CR>
|
||||
autocmd FileType c imap <buffer> <F9> <esc> :w<CR>:vs<CR>:ter gcc "%" -o %< && ./%< && read<CR>
|
||||
|
||||
|
@ -43,6 +43,10 @@ autocmd FileType markdown imap <buffer> <F9> <esc> :w<CR>:!pandoc -o "%:r.pdf" -
|
|||
" Open pdf via zathura if exist
|
||||
autocmd FileType markdown map <leader>o :!setsid pdfview "%:r.pdf"<CR><CR>
|
||||
|
||||
" m (matlab/octave)
|
||||
autocmd FileType sh map <buffer> <F9> :w<CR>:vs<CR>:ter octave "%"<CR>
|
||||
autocmd FileType sh imap <buffer> <F9> <esc> :w<CR>:vs<CR>:ter octave "%"<CR>
|
||||
|
||||
" ----- Automatically Render PDF
|
||||
autocmd FileType plaintex command! -nargs=0 Lw w !pdflatex % > /dev/null
|
||||
autocmd FileType tex command! -nargs=0 Lw w !pdflatex % > /dev/null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue