Skip to content

Commit 7a83e31

Browse files
committed
Add UnconditionalPaste
1 parent 9a9c02e commit 7a83e31

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

config/local.plugins.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,14 @@
300300
# Operators
301301
# ---------
302302

303+
- repo: inkarkat/vim-ingo-library
304+
on_source: vim-UnconditionalPaste
305+
306+
- repo: inkarkat/vim-UnconditionalPaste
307+
on_map: { n: <Plug> }
308+
hook_source: |
309+
let g:UnconditionalPaste_no_mappings = 1
310+
303311
# ==========================================
304312
# Text objects
305313
# ------------

config/local.vim

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ cunmap <C-n>
1717
" }}}
1818
" Async Autocomplete {{{
1919
let g:asc_look_good_words_file = &spellfile
20+
" }}}
2021
" Key Mappings {{{
2122
" make sure that iTerm sends the right key combination for <S-Return>
2223
" https://stackoverflow.com/questions/16359878/vim-how-to-map-shift-enter
@@ -200,4 +201,10 @@ if dein#tap('vim-easymotion')
200201
" map sp <Plug>(easymotion-prev)
201202
endif
202203
" }}}
204+
" - UnconditionalPast Settings {{{
205+
nmap Pc <Plug>UnconditionalPasteCharBefore
206+
nmap pc <Plug>UnconditionalPasteCharAfter
207+
nmap Pn <Plug>UnconditionalPasteInlinedBefore
208+
nmap pn <Plug>UnconditionalPasteInlinedAfter
209+
" }}}
203210
" vim: set foldmethod=marker ts=2 sw=2 tw=80 noet :

0 commit comments

Comments
 (0)