Add spell check shortcuts
This commit is contained in:
parent
091ad65ce3
commit
64a3a0246b
1
vim/spell/en.utf-8.add
Normal file
1
vim/spell/en.utf-8.add
Normal file
|
@ -0,0 +1 @@
|
|||
Gah
|
BIN
vim/spell/en.utf-8.add.spl
Normal file
BIN
vim/spell/en.utf-8.add.spl
Normal file
Binary file not shown.
8
vimrc
8
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 <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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user