map Jk and JK, map qwr for javascript

This commit is contained in:
sup39 2020-07-31 23:59:19 +09:00
parent cac3e11b07
commit 183f2daafc

7
vimrc
View file

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