diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-07 15:01:24 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-07 15:01:24 +1200 |
commit | 27e245d9c91b584311e39728c84f2c57aa08c360 (patch) | |
tree | 8f791914816c1821707a680a129790d2907fc77f /vim/after/plugin/surround.vim | |
parent | Check for 'cursorline' existence (diff) | |
download | dotfiles-27e245d9c91b584311e39728c84f2c57aa08c360.tar.gz dotfiles-27e245d9c91b584311e39728c84f2c57aa08c360.zip |
Check surround.vim actually loaded before unmap
Diffstat (limited to 'vim/after/plugin/surround.vim')
-rw-r--r-- | vim/after/plugin/surround.vim | 3 |
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 |