diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-03-01 02:42:27 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-03-01 02:42:27 -0500 |
commit | cbd874b5b3bbb9677141f235613c2056361d716f (patch) | |
tree | f1793144daa71dd74c358defe41ab8e51354de66 /vim | |
parent | 374269187692dd215324b1939b6277fa197b84ff (diff) | |
download | conf-cbd874b5b3bbb9677141f235613c2056361d716f.tar.gz conf-cbd874b5b3bbb9677141f235613c2056361d716f.zip |
i don't think i have ever actually used the nopaste plugin
Diffstat (limited to 'vim')
-rw-r--r-- | vim/plugin/nopaste.vim | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/vim/plugin/nopaste.vim b/vim/plugin/nopaste.vim deleted file mode 100644 index cb904f7..0000000 --- a/vim/plugin/nopaste.vim +++ /dev/null @@ -1,19 +0,0 @@ -function! s:nopaste(visual) - if a:visual - silent normal! gv:!nopaste<CR> - else - let l:pos = getpos('.') - silent normal! :%!nopaste<CR> - endif - silent normal! "+yy - let @* = @+ - silent undo - " can't restore visual selection because that will overwrite "* - if !a:visual - call setpos('.', l:pos) - endif - echo @+ -endfunction - -nnoremap <silent><Leader>p :call <SID>nopaste(0)<CR> -xnoremap <silent><Leader>p :<C-U>call <SID>nopaste(1)<CR> |