Add spell check shortcuts

This commit is contained in:
Michael Campagnaro 2015-02-28 14:28:13 -05:00
parent 091ad65ce3
commit 64a3a0246b
3 changed files with 9 additions and 0 deletions

1
vim/spell/en.utf-8.add Normal file
View File

@ -0,0 +1 @@
Gah

BIN
vim/spell/en.utf-8.add.spl Normal file

Binary file not shown.

8
vimrc
View File

@ -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 <leader>gr :topleft 100 :split config/routes.rb<cr>
map <leader>p :set paste! paste?<cr>
map <leader>o :set number! number?<cr>
" Spell checking
map <leader>d :set spell! spell?<cr>
" Clear the search buffer (highlighting) when hitting return
function! MapCR()
nnoremap <cr> :nohlsearch<cr>