diff --git a/vimrc b/vimrc index eddb138..dba4282 100644 --- a/vimrc +++ b/vimrc @@ -9,6 +9,8 @@ if !exists('maplocalleader') noremap endif inoremap jk +inoremap Jk +inoremap JK " file " save nnoremap :w @@ -38,7 +40,7 @@ nnoremap db :ALEGoToDefinition -tab nnoremap dm :ALEGoToDefinition nnoremap dl :ALEDetail " external -nnoremap m :w:make +nnoremap m :w:!make " syntax nnoremap S :syntax sync fromstart " debug @@ -62,6 +64,7 @@ augroup sup39_auto \'#include "'.substitute(@%, '\.\zsc\ze\(pp\)\?$', 'h', '').'"')o " abbr autocmd Filetype c,cpp iabbrev #i #include + autocmd Filetype c,cpp iabbrev #I #include " markdown " plugin autocmd Filetype markdown nnoremap p :MarkdownPreview @@ -75,6 +78,8 @@ augroup sup39_auto autocmd FileType make,java,python setlocal noexpandtab " syntax sync autocmd FileType markdown,vue syntax sync fromstart + " run + autocmd FileType javascript nnoremap r :w:!node % augroup END " basic