1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-07 05:45:11 +01:00

Quick spelling fixer

This commit is contained in:
2019-03-22 21:32:23 +01:00
parent e03169a63b
commit 634f1da4c8

7
.vimrc
View File

@@ -249,6 +249,13 @@ if !exists( "b:myLang" )
endif
endif
" Correct previous spelling error with Ctrl+l. jumps to the previous
" spelling mistake [s, then picks the first suggestion 1z=, and then
" jumps back `]a. The <c-g>u in the middle make it possible to undo
" the spelling correction quickly.
" https://castel.dev/post/lecture-notes-1/
inoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u
" Word completion from dictionary (on ctrl+space)
set complete+=kspell