shortcuts for replacing words

This commit is contained in:
ManjaroOne666 2018-02-10 11:58:33 +00:00
parent 036bc30b39
commit e9da1b87e6
1 changed files with 5 additions and 0 deletions

5
vimrc
View File

@ -138,6 +138,11 @@ set foldcolumn=1
" key mappings
let g:mapleader = "\<space>"
" replace current word with last yanked/deleted text
nnoremap <leader>pp "_diwP
" replace current word with last yanked text
nnoremap <leader>py diw"0P
" jk acts as escape in insert
inoremap jk <esc>