diff --git a/.vimrc b/.vimrc index 3af1622..d87aaf5 100644 --- a/.vimrc +++ b/.vimrc @@ -139,16 +139,11 @@ augroup END " Re-mappings and commands ----------------------------------- {{{ -" Use jk as escape sequence so we can avoid the distant -" key; also, save when we enter jk -fun! s:MaybeSave() - if(strlen(@%) > 0) - write - else - redraw! - endif -endfun -inoremap jk :call MaybeSave() +" Use jk as escape sequence so we can avoid the distant key +inoremap jk + +" Use jj in insert mode to escape and quit +inoremap jj :q! " In visual mode, use Y to copy to system clipboard vnoremap Y "*y