mirror of
https://github.com/adulau/dotfiles.git
synced 2024-12-22 08:46:01 +00:00
vimrc: config file updated (spellcheck)
This commit is contained in:
parent
45a6c81140
commit
f21367660e
1 changed files with 10 additions and 1 deletions
11
.vimrc
11
.vimrc
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue