aboutsummaryrefslogtreecommitdiff
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
parentUse hard tabs for editing Vim :help files (diff)
downloaddotfiles-11e62995956dbb1f81f5dac30c64e9631eb9efac.tar.gz
dotfiles-11e62995956dbb1f81f5dac30c64e9631eb9efac.zip
Spin off paste_insert.vim into distribution
-rw-r--r--.gitmodules3
-rw-r--r--vim/autoload/paste_insert.vim13
m---------vim/bundle/paste_insert0
-rw-r--r--vim/plugin/paste_insert.vim8
4 files changed, 3 insertions, 21 deletions
diff --git a/.gitmodules b/.gitmodules
index 5f049838..1a1178e2 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -32,6 +32,9 @@
[submodule "vim/bundle/keep_position"]
path = vim/bundle/keep_position
url = https://sanctum.geek.nz/code/vim-keep-position.git
+[submodule "vim/bundle/paste_insert"]
+ path = vim/bundle/paste_insert
+ url = https://sanctum.geek.nz/code/vim-paste-insert.git
[submodule "vim/bundle/put_blank_lines"]
path = vim/bundle/put_blank_lines
url = https://sanctum.geek.nz/code/vim-put-blank-lines.git
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>