mirror of
https://github.com/Foltik/dotfiles
synced 2024-11-24 04:22:50 -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))
|
||||
#+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
|
||||
Use =S= and a delimiter to surround in visual mode.
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
Loading…
Reference in New Issue
Block a user