Adds a few spell related improvements
Markdown documents now have spell switched on when they are opened C-l will now choose the first option of the last misspeled word in insert mode.
This commit is contained in:
parent
e3cb835fc0
commit
7610262384
1 changed files with 8 additions and 0 deletions
8
.vimrc
8
.vimrc
|
@ -414,6 +414,8 @@ nnoremap <S-Enter> O<Esc>
|
|||
" Make jj in insert mode go to normal mode
|
||||
inoremap jj <Esc>
|
||||
|
||||
inoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u
|
||||
|
||||
" Set double space in insert mode to go to next mark and enter insert mode
|
||||
"inoremap <leader><leader> <Esc>:call NextMark()<cr>
|
||||
|
||||
|
@ -538,6 +540,12 @@ augroup file_json
|
|||
autocmd FileType json setlocal foldmethod=syntax foldenable
|
||||
augroup END
|
||||
|
||||
" Make md files use spellcheck{{{2
|
||||
augroup file_md
|
||||
autocmd!
|
||||
autocmd FileType markdown setlocal spell
|
||||
augroup END
|
||||
|
||||
""set es6 files to javascript {{{2
|
||||
augroup detectES6
|
||||
autocmd!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue