Make jj exit insert mode
This commit is contained in:
parent
d00a19e59a
commit
5e82125867
1 changed files with 4 additions and 1 deletions
5
.vimrc
5
.vimrc
|
@ -259,7 +259,7 @@ function! NewLatex()
|
|||
endfunction
|
||||
|
||||
" Mappings {{{1
|
||||
" Move lines up/down using arrow keys
|
||||
" Move lines up/down/left/right using arrow keys
|
||||
nnoremap <Down> ddp
|
||||
nnoremap <Up> ddkP
|
||||
nnoremap <Right> xp
|
||||
|
@ -303,6 +303,9 @@ nnoremap <leader>sv :source $MYVIMRC<cr>
|
|||
nnoremap <CR> o<Esc>
|
||||
nnoremap <S-Enter> O<Esc>
|
||||
|
||||
" Make jj in insert mode go to normal mode
|
||||
inoremap jj <Esc>
|
||||
|
||||
" Set double space in insert mode to go to next mark and enter insert mode
|
||||
"inoremap <leader><leader> <Esc>:call NextMark()<cr>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue