Skip to content

Commit

Permalink
well. Actually remove the function in (the previous) question
Browse files Browse the repository at this point in the history
  • Loading branch information
fifthposition committed Nov 28, 2013
1 parent 1c29a2f commit d001cde
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,11 @@ augroup END

" Re-mappings and commands ----------------------------------- {{{

" Use jk as escape sequence so we can avoid the distant <Esc>
" key; also, save when we enter jk
fun! s:MaybeSave()
if(strlen(@%) > 0)
write
else
redraw!
endif
endfun
inoremap jk <Esc>:call <SID>MaybeSave()<cr>
" Use jk as escape sequence so we can avoid the distant <Esc> key
inoremap jk <Esc>
" Use jj in insert mode to escape and quit
inoremap jj <Esc>:q!<cr>
" In visual mode, use Y to copy to system clipboard
vnoremap Y "*y
Expand Down

0 comments on commit d001cde

Please sign in to comment.