From 4a9b7ecc66e6a451e273befcf418d36cb7167637 Mon Sep 17 00:00:00 2001 From: Ethan Schoonover Date: Tue, 12 Apr 2011 16:17:59 -0700 Subject: updated vim solarized togglebg plugin to fix silent error on unique remapping --- plugin/togglebackground.vim | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 plugin/togglebackground.vim (limited to 'plugin') diff --git a/plugin/togglebackground.vim b/plugin/togglebackground.vim deleted file mode 100644 index 7663af7..0000000 --- a/plugin/togglebackground.vim +++ /dev/null @@ -1,45 +0,0 @@ -" Toggle background -" Last Change: April 7, 2011 -" Maintainer: Ethan Schoonover -" License: OSI approved MIT license - -if exists("g:loaded_ToggleBackground") - finish -endif -let g:loaded_ToggleBackground = 1 - -if !exists("no_plugin_maps") && !hasmapto('ToggleBackground') - " map alone won't work here as it doesn't - try - silent! nmap ToggleBackground - silent! imap ToggleBackground - silent! vmap ToggleBackground - finally - let g:test_val = "checked" - endtry -endif - -" noremap is a bit misleading here if you are unused to vim mapping. -" in fact, there is remapping, but only of script locally defined remaps, in -" this case TogBG. The