]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Disable 'spell', 'list' and 2match when viewing documentation.
authorSimon Ruderich <simon@ruderich.org>
Mon, 13 Sep 2010 15:39:20 +0000 (17:39 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 13 Sep 2010 15:39:20 +0000 (17:39 +0200)
vimrc

diff --git a/vimrc b/vimrc
index 86c23f01ea9f2c4c4e06f8eddb1020e79bb770cf..946ff88b9b2e8037b51fbdd5c06caa1bf4742855 100644 (file)
--- 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