map Jk and JK, map qwr for javascript
This commit is contained in:
parent
cac3e11b07
commit
183f2daafc
1 changed files with 6 additions and 1 deletions
7
vimrc
7
vimrc
|
@ -9,6 +9,8 @@ if !exists('maplocalleader')
|
|||
noremap <localleader> <nop>
|
||||
endif
|
||||
inoremap jk <ESC>
|
||||
inoremap Jk <ESC>
|
||||
inoremap JK <ESC>
|
||||
" file
|
||||
" save
|
||||
nnoremap <C-S> :w<CR>
|
||||
|
@ -38,7 +40,7 @@ nnoremap <leader>db :ALEGoToDefinition -tab<CR>
|
|||
nnoremap <leader>dm :ALEGoToDefinition<CR>
|
||||
nnoremap <leader>dl :ALEDetail<CR>
|
||||
" external
|
||||
nnoremap <leader>m :w<CR>:make<CR>
|
||||
nnoremap <leader>m :w<CR>:!make<CR>
|
||||
" syntax
|
||||
nnoremap <leader>S :syntax sync fromstart<CR>
|
||||
" debug
|
||||
|
@ -62,6 +64,7 @@ augroup sup39_auto
|
|||
\'#include "'.substitute(@%, '\.\zsc\ze\(pp\)\?$', 'h', '').'"')<CR>o
|
||||
" abbr
|
||||
autocmd Filetype c,cpp iabbrev <buffer> #i #include
|
||||
autocmd Filetype c,cpp iabbrev <buffer> #I #include
|
||||
" markdown
|
||||
" plugin
|
||||
autocmd Filetype markdown nnoremap <localleader>p :MarkdownPreview<CR>
|
||||
|
@ -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 <localleader>r :w<CR>:!node %<CR>
|
||||
augroup END
|
||||
|
||||
" basic
|
||||
|
|
Loading…
Reference in a new issue