]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Fix exists() check for InsertLeave.
authorSimon Ruderich <simon@ruderich.org>
Sun, 30 Oct 2011 13:32:49 +0000 (14:32 +0100)
committerSimon Ruderich <simon@ruderich.org>
Mon, 31 Oct 2011 20:33:29 +0000 (21:33 +0100)
Broken in 51bdb20b6c613f6b29b1e59d6077743b0ce2da6d.

vimrc

diff --git a/vimrc b/vimrc
index 6048d8ec1798fb1265127bed40c7856336ca2c9b..d950d074e5d7242253d4f0300d81084c5b72de85 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -444,7 +444,7 @@ if has('autocmd')
 " Automatically disable 'paste' mode when leaving insert mode. Thanks to
 " Raimondi in #vim on Freenode (2010-08-14 23:01 CEST). Very useful as I only
 " want to paste once and then 'paste' gets automatically unset.
-        if exists('#InsertLeave')
+        if exists('##InsertLeave')
             autocmd InsertLeave * set nopaste
         endif