aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-19 22:42:22 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-19 22:42:22 +1200
commit11e62995956dbb1f81f5dac30c64e9631eb9efac (patch)
tree14dc4debd7d37086fce806bc4c843d6fc5e3ee4a /vim
parent8fc405cc45ff07d64a8cab145e53f6de12b5b7c2 (diff)
downloaddotfiles-11e62995956dbb1f81f5dac30c64e9631eb9efac.tar.gz
dotfiles-11e62995956dbb1f81f5dac30c64e9631eb9efac.zip
Spin off paste_insert.vim into distribution
Diffstat (limited to 'vim')
-rw-r--r--vim/autoload/paste_insert.vim13
m---------vim/bundle/paste_insert0
-rw-r--r--vim/plugin/paste_insert.vim8
3 files changed, 0 insertions, 21 deletions
diff --git a/vim/autoload/paste_insert.vim b/vim/autoload/paste_insert.vim
deleted file mode 100644
index f055249f..00000000
--- a/vim/autoload/paste_insert.vim
+++ /dev/null
@@ -1,13 +0,0 @@
-function! paste_insert#() abort
- augroup paste_insert
- autocmd!
- autocmd User Error,Finish
- \ set nopaste paste? | autocmd! paste_insert
- autocmd CursorHold,CursorMoved,BufLeave,WinLeave *
- \ doautocmd paste_insert User Error
- autocmd InsertEnter *
- \ autocmd paste_insert InsertLeave *
- \ doautocmd paste_insert User Finish
- augroup END
- set paste paste?
-endfunction
diff --git a/vim/bundle/paste_insert b/vim/bundle/paste_insert
new file mode 160000
+Subproject d754e506fdfb10688d721935c01d2615d11b2a1
diff --git a/vim/plugin/paste_insert.vim b/vim/plugin/paste_insert.vim
deleted file mode 100644
index 2c17f802..00000000
--- a/vim/plugin/paste_insert.vim
+++ /dev/null
@@ -1,8 +0,0 @@
-if exists('loaded_paste_insert') || &compatible
- finish
-endif
-let loaded_paste_insert = 1
-command! -bar PasteInsert
- \ call paste_insert#()
-nnoremap <Plug>PasteInsert
- \ :<C-U>PasteInsert<CR>