aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorTeddy Wing2014-06-14 19:23:00 -0400
committerTeddy Wing2014-06-14 19:23:00 -0400
commit7b01a1db66efde6c79df75f1646569f4b9148a4e (patch)
treef484797e9e61d95d89a0f5a31ae63a6207db3398 /plugin
parent2b29135aad49b866ff41b469e5632d4ed6c0cdc0 (diff)
downloaddotvim-7b01a1db66efde6c79df75f1646569f4b9148a4e.tar.bz2
unimpaired_paste: add `yi` mapping
I often find that I want to delete the line inserted from the `yo` mapping. This adds a mapping that doesn't add the line in the first place so I don't have to go back and delete it after pasting.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/unimpaired_paste.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/unimpaired_paste.vim b/plugin/unimpaired_paste.vim
index 5a1a3ef..f628fb1 100644
--- a/plugin/unimpaired_paste.vim
+++ b/plugin/unimpaired_paste.vim
@@ -22,6 +22,7 @@ nnoremap <silent> <Plug>unimpairedPaste :call <SID>setup_paste()<CR>
nnoremap <silent> yo :call <SID>setup_paste()<CR>o
nnoremap <silent> yO :call <SID>setup_paste()<CR>O
+nnoremap <silent> yi :call <SID>setup_paste()<CR>i
augroup unimpaired_paste
autocmd!