From cbd874b5b3bbb9677141f235613c2056361d716f Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 1 Mar 2021 02:42:27 -0500 Subject: i don't think i have ever actually used the nopaste plugin --- vim/plugin/nopaste.vim | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 vim/plugin/nopaste.vim (limited to 'vim') 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 - else - let l:pos = getpos('.') - silent normal! :%!nopaste - 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 p :call nopaste(0) -xnoremap p :call nopaste(1) -- cgit v1.2.3-54-g00ecf