Port more next/previous motions from vim

They are:

]m, [m
  Jump to next/previous beginning of method/function.
]M, [M
  Jump to next/previous end of method/function
]#, [#
  Jump to next/previous preprocessor directive (only supports C-style
  directives for now)
]*, [* (or ]\, [\)
  Jump to next/previous comment
This commit is contained in:
Henrik Lissner 2019-06-17 12:37:19 +02:00
parent 61502d7e31
commit 855ff34e2c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 86 additions and 1 deletions

View file

@ -54,7 +54,17 @@
;; misc
:n "C-S-f" #'toggle-frame-fullscreen
;; ported vim keys
;; ported from vim
:m "]m" #'+evil/next-beginning-of-method
:m "[m" #'+evil/previous-beginning-of-method
:m "]M" #'+evil/next-end-of-method
:m "[M" #'+evil/previous-end-of-method
:m "]#" #'+evil/next-preproc-directive
:m "[#" #'+evil/previous-preproc-directive
:m "]*" #'+evil/next-comment
:m "[*" #'+evil/previous-comment
:m "]\\" #'+evil/next-comment
:m "[\\" #'+evil/previous-comment
:nv "z=" #'flyspell-correct-word-generic
:v "@" #'+evil:apply-macro
@ -94,6 +104,7 @@
:v "g=" #'evil-numbers/inc-at-pt-incremental
:v "g-" #'evil-numbers/dec-at-pt-incremental
:v "g+" #'evil-numbers/inc-at-pt
;; custom evil keybinds
:n "zx" #'kill-current-buffer
:n "ZX" #'bury-buffer