From f21367660e19bf4a9005938bfafbcc3293921178 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sun, 8 May 2011 19:09:17 +0200 Subject: [PATCH] vimrc: config file updated (spellcheck) --- .vimrc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index e2e92c4..5ad40c9 100644 --- a/.vimrc +++ b/.vimrc @@ -14,7 +14,7 @@ let perl_include_pod = 1 let perl_extended_vars = 1 " Menu and alike -set wildmenu +set wildmode=longest:full set ruler set guioptions-=T set laststatus=2 @@ -24,3 +24,12 @@ set laststatus=2 " Show those stupid trailing whitespace highlight WhitespaceEOL ctermbg=red guibg=red match WhitespaceEOL /\s\+$/ +" spellcheck +if v:version >= 700 + " Enable spell check for text files + autocmd BufNewFile,BufRead *.txt setlocal spell spelllang=en + autocmd BufNewFile,BufRead *.md setlocal spell spelllang=en + " Usually writting my notes in broken English + autocmd BufNewFile,BufRead ~/.notes/* setlocal spell spelllang=en +endif +