From 27e245d9c91b584311e39728c84f2c57aa08c360 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 7 Aug 2018 15:01:24 +1200 Subject: Check surround.vim actually loaded before unmap --- vim/after/plugin/surround.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vim') 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 ISurround iunmap Isurround iunmap S -- cgit v1.2.3