mirror of
https://github.com/Foltik/dotfiles
synced 2024-11-28 05:27:06 -05:00
Add evil subword
This commit is contained in:
parent
e8638eb431
commit
beb3b3cb15
@ -231,6 +231,19 @@ An enhanced version of =f= in Vim.
|
|||||||
"C-f" 'avy-goto-char-in-line
|
"C-f" 'avy-goto-char-in-line
|
||||||
"C-F" 'avy-goto-char))
|
"C-F" 'avy-goto-char))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
*** Subword
|
||||||
|
Make boundaries between words in camelCase act as separate words for evil motions.
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package subword
|
||||||
|
:init
|
||||||
|
(define-category ?U "Uppercase")
|
||||||
|
(define-category ?u "Lowercase")
|
||||||
|
(modify-category-entry (cons ?A ?Z) ?U)
|
||||||
|
(modify-category-entry (cons ?a ?z) ?u)
|
||||||
|
|
||||||
|
:config
|
||||||
|
(push '(?u . ?U) evil-cjk-word-separating-categories))
|
||||||
|
#+END_SRC
|
||||||
*** evil-surround
|
*** evil-surround
|
||||||
Use =S= and a delimiter to surround in visual mode.
|
Use =S= and a delimiter to surround in visual mode.
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
Loading…
Reference in New Issue
Block a user