aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-16 03:17:36 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-16 03:17:36 +1200
commiteb922ee192c8308913cd1b6253c6c3aca44aae18 (patch)
tree4bfcf28e93ed2536b2a7d74846a0b0b6cabaa33c
parentdcf6754cecb0e3f7977dd009438beb3b6cd18bee (diff)
downloaddotfiles-eb922ee192c8308913cd1b6253c6c3aca44aae18.tar.gz
Strip buflocal property from paste_insert autocmds
-rw-r--r--vim/autoload/paste_insert.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/autoload/paste_insert.vim b/vim/autoload/paste_insert.vim
index b02d8e7a..ada11456 100644
--- a/vim/autoload/paste_insert.vim
+++ b/vim/autoload/paste_insert.vim
@@ -1,12 +1,12 @@
function! paste_insert#() abort
augroup paste_insert
autocmd!
- autocmd CursorHold,CursorMoved,User <buffer>
+ autocmd CursorHold,CursorMoved,User *
\ set nopaste paste?
\|autocmd! paste_insert
- autocmd InsertEnter <buffer>
+ autocmd InsertEnter *
\ set paste paste?
- \|autocmd paste_insert InsertLeave <buffer>
+ \|autocmd paste_insert InsertLeave *
\ doautocmd paste_insert User
augroup END
endfunction