From: Simon Ruderich Date: Sun, 30 Oct 2011 13:32:49 +0000 (+0100) Subject: vimrc: Fix exists() check for InsertLeave. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=4e3363c35b35433bb7135841cfe27e57c72ad6bd;p=config%2Fdotfiles.git vimrc: Fix exists() check for InsertLeave. Broken in 51bdb20b6c613f6b29b1e59d6077743b0ce2da6d. --- diff --git a/vimrc b/vimrc index 6048d8e..d950d07 100644 --- 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