From 64a3a0246bf613d5c07ad645b09e5eb257779920 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Sat, 28 Feb 2015 14:28:13 -0500 Subject: [PATCH] Add spell check shortcuts --- vim/spell/en.utf-8.add | 1 + vim/spell/en.utf-8.add.spl | Bin 0 -> 32 bytes vimrc | 8 ++++++++ 3 files changed, 9 insertions(+) create mode 100644 vim/spell/en.utf-8.add create mode 100644 vim/spell/en.utf-8.add.spl 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 0000000000000000000000000000000000000000..08cc195d02e0fcbf956e28cd9328c2edef9db706 GIT binary patch literal 32 hcmWIZ^erw(&B-zP&%nUI!I;jN$e6*%#02C(004xP1%3bk literal 0 HcmV?d00001 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