From 761026238454ecaaa656d76a6e84e98cd5260193 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Fri, 22 Mar 2019 17:17:52 +0000 Subject: [PATCH] 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. --- .vimrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.vimrc b/.vimrc index 5b26010..7435f7b 100644 --- a/.vimrc +++ b/.vimrc @@ -414,6 +414,8 @@ nnoremap O " Make jj in insert mode go to normal mode inoremap jj +inoremap u[s1z=`]au + " Set double space in insert mode to go to next mark and enter insert mode "inoremap :call NextMark() @@ -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!