vimrc: config file updated (spellcheck)

This commit is contained in:
Alexandre Dulaunoy 2011-05-08 19:09:17 +02:00
parent 45a6c81140
commit f21367660e

11
.vimrc
View file

@ -14,7 +14,7 @@ let perl_include_pod = 1
let perl_extended_vars = 1 let perl_extended_vars = 1
" Menu and alike " Menu and alike
set wildmenu set wildmode=longest:full
set ruler set ruler
set guioptions-=T set guioptions-=T
set laststatus=2 set laststatus=2
@ -24,3 +24,12 @@ set laststatus=2
" Show those stupid trailing whitespace " Show those stupid trailing whitespace
highlight WhitespaceEOL ctermbg=red guibg=red highlight WhitespaceEOL ctermbg=red guibg=red
match WhitespaceEOL /\s\+$/ 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