shortcuts for replacing words
This commit is contained in:
parent
036bc30b39
commit
e9da1b87e6
5
vimrc
5
vimrc
|
@ -138,6 +138,11 @@ set foldcolumn=1
|
||||||
" key mappings
|
" key mappings
|
||||||
let g:mapleader = "\<space>"
|
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
|
" jk acts as escape in insert
|
||||||
inoremap jk <esc>
|
inoremap jk <esc>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue