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:
parent
ff9c1ace22
commit
d5e64d0586
1 changed files with 7 additions and 6 deletions
|
@ -376,16 +376,17 @@ directives. By default, this only recognizes C directives.")
|
||||||
;;; Keybinds
|
;;; Keybinds
|
||||||
|
|
||||||
;; Keybinds that have no Emacs+evil analogues (i.e. don't exist):
|
;; 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
|
;; 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
|
(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
|
;; ported from vim-unimpaired
|
||||||
:n "] SPC" #'+evil/insert-newline-below
|
:n "] SPC" #'+evil/insert-newline-below
|
||||||
:n "[ SPC" #'+evil/insert-newline-above
|
:n "[ SPC" #'+evil/insert-newline-above
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue