aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-07 15:01:24 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-07 15:01:24 +1200
commit27e245d9c91b584311e39728c84f2c57aa08c360 (patch)
tree8f791914816c1821707a680a129790d2907fc77f
parentCheck for 'cursorline' existence (diff)
downloaddotfiles-27e245d9c91b584311e39728c84f2c57aa08c360.tar.gz
dotfiles-27e245d9c91b584311e39728c84f2c57aa08c360.zip
Check surround.vim actually loaded before unmap
-rw-r--r--vim/after/plugin/surround.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/after/plugin/surround.vim b/vim/after/plugin/surround.vim
index b1face5f..800bc38d 100644
--- a/vim/after/plugin/surround.vim
+++ b/vim/after/plugin/surround.vim
@@ -1,4 +1,7 @@
" Remove surround.vim's insert mode maps
+if !exists('g:loaded_surround')
+ finish
+endif
iunmap <Plug>ISurround
iunmap <Plug>Isurround
iunmap <C-G>S