From 645580917a15aea41eef466f49bdea00cae7e594 Mon Sep 17 00:00:00 2001 From: ziro Date: Sat, 6 Mar 2021 17:39:26 +0700 Subject: [PATCH] + Added ruby execute shortcut --- .config/vim/vim_nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/vim/vim_nix b/.config/vim/vim_nix index 1023cd0..2611871 100644 --- a/.config/vim/vim_nix +++ b/.config/vim/vim_nix @@ -47,6 +47,10 @@ autocmd FileType markdown map o :!setsid pdfview "%:r.pdf" autocmd FileType matlab map :w:vs:ter octave "%" autocmd FileType matlab imap :w:vs:ter octave "%" +" ruby +autocmd FileType ruby map :w:vs:ter ruby "%" +autocmd FileType ruby imap :w:vs:ter ruby "%" + " ----- 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