From: Simon Ruderich Date: Mon, 13 Sep 2010 15:39:20 +0000 (+0200) Subject: vimrc: Disable 'spell', 'list' and 2match when viewing documentation. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=506f94ad3b47d442117caa0ae929725c8b338515;p=config%2Fdotfiles.git vimrc: Disable 'spell', 'list' and 2match when viewing documentation. --- diff --git a/vimrc b/vimrc index 86c23f0..946ff88 100644 --- a/vimrc +++ b/vimrc @@ -396,6 +396,10 @@ if has('autocmd') " OTHER AUTO COMMANDS +" Disable spell checking, displaying of list characters and long lines when +" viewing documentation. + autocmd BufReadPost /usr/share/doc/* setlocal nospell nolist | 2match + " Use diff filetype for mercurial patches in patch queue. autocmd BufReadPost */.hg/patches/* set filetype=diff