Add zq, zw, ]s and [s keybinds for spell-fu

These are canonical vim keybinds for interacting with the dictionary and
navigating spelling errors.
This commit is contained in:
Henrik Lissner 2020-08-21 03:01:15 -04:00
parent ff9c1ace22
commit d5e64d0586
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -376,16 +376,17 @@ directives. By default, this only recognizes C directives.")
;;; Keybinds
;; Keybinds that have no Emacs+evil analogues (i.e. don't exist):
;; zq - mark word at point as good word
;; zw - mark word at point as bad
;; zu{q,w} - undo last marking
;; Keybinds that evil define:
;; z= - correct flyspell word at point
;; ]s - jump to previous spelling error
;; [s - jump to next spelling error
(map! :v "@" #'+evil:apply-macro
;; implement dictionary keybinds
;; evil already defines 'z=' to `ispell-word' = correct word at point
:n "zq" #'spell-fu-word-add
:n "zw" #'spell-fu-word-remove
:n "[s" #'spell-fu-goto-previous-error
:n "]s" #'spell-fu-goto-next-error
;; ported from vim-unimpaired
:n "] SPC" #'+evil/insert-newline-below
:n "[ SPC" #'+evil/insert-newline-above