diff --git a/vim/spell/en.utf-8.add b/vim/spell/en.utf-8.add new file mode 100644 index 0000000..23eebb1 --- /dev/null +++ b/vim/spell/en.utf-8.add @@ -0,0 +1 @@ +Gah diff --git a/vim/spell/en.utf-8.add.spl b/vim/spell/en.utf-8.add.spl new file mode 100644 index 0000000..08cc195 Binary files /dev/null and b/vim/spell/en.utf-8.add.spl differ diff --git a/vimrc b/vimrc index eb0205b..c30df06 100644 --- a/vimrc +++ b/vimrc @@ -98,6 +98,8 @@ set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp set backspace=indent,eol,start " display incomplete commands set showcmd +" Spell checking autocomplete +set complete+=kspell " Enable highlighting for syntax syntax on " Enable file type detection. @@ -198,6 +200,9 @@ augroup vimrcEx " Indent p tags autocmd FileType html,eruby if g:html_indent_tags !~ '\\|p\>' | let g:html_indent_tags .= '\|p\|li\|dt\|dd' | endif + + " Spell check + autocmd BufRead,BufNewFile *.md setlocal spell augroup END """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -260,6 +265,9 @@ map gr :topleft 100 :split config/routes.rb map p :set paste! paste? map o :set number! number? +" Spell checking +map d :set spell! spell? + " Clear the search buffer (highlighting) when hitting return function! MapCR() nnoremap :nohlsearch