Skip to content

Instantly share code, notes, and snippets.

@yongkyuns
Created August 1, 2020 12:32
Show Gist options
  • Save yongkyuns/d157e6f3adf1c9cd3c222459f90d3034 to your computer and use it in GitHub Desktop.
Save yongkyuns/d157e6f3adf1c9cd3c222459f90d3034 to your computer and use it in GitHub Desktop.
" Cursor move to line begin/end in insert mode
inoremap <C-b> <C-o>^
inoremap <C-e> <C-o>$
inoremap <C-h> <Left>
inoremap <C-l> <Right>
inoremap <C-j> <Down>
inoremap <C-k> <Up>
" delete without yanking
nnoremap <C-b> ^
nnoremap <C-e> $
nnoremap <leader>d "_d
vnoremap <leader>d "_d
nnoremap x "_x
vnoremap x "_x
" Jump up/down multiple lines
nnoremap <C-j> 5j
nnoremap <C-k> 5k
" replace currently selected text with default register
" without yanking it
vnoremap <leader>p "_dP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment