From 5dbae45eb7d4f0b18d19416910fe9cb0295d730a Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 13 Sep 2010 17:37:16 +0200 Subject: [PATCH] vimrc: Automatically reset paste after exiting insert mode. --- vimrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vimrc b/vimrc index b0665ef..67e197d 100644 --- a/vimrc +++ b/vimrc @@ -361,6 +361,11 @@ if has('autocmd') \ setlocal nonumber | \ endif +" 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. + autocmd InsertLeave * set nopaste + " AFTER/FTPLUGIN AUTO COMMANDS " Disable spell checking for files which don't need it. -- 2.45.2