From 5e821258676c8c91ce0a43b287c1c7a61796c615 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Sun, 11 Feb 2018 16:53:07 +0000 Subject: [PATCH] Make jj exit insert mode --- .vimrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index c70d5fd..d750f04 100644 --- a/.vimrc +++ b/.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 ddp nnoremap ddkP nnoremap xp @@ -303,6 +303,9 @@ nnoremap sv :source $MYVIMRC nnoremap o nnoremap O +" Make jj in insert mode go to normal mode +inoremap jj + " Set double space in insert mode to go to next mark and enter insert mode "inoremap :call NextMark()