Make j/k/$/0 motions visual-line sensitive
This commit is contained in:
parent
ba66f2ca2c
commit
4e5bc942c8
1 changed files with 12 additions and 0 deletions
|
@ -173,6 +173,18 @@
|
||||||
:n "e" 'emr-show-refactor-menu
|
:n "e" 'emr-show-refactor-menu
|
||||||
:n "r" 'narf:eval-buffer))
|
:n "r" 'narf:eval-buffer))
|
||||||
|
|
||||||
|
;; make motions visual line sensitive
|
||||||
|
:m "j" 'evil-next-visual-line
|
||||||
|
:m "k" 'evil-previous-visual-line
|
||||||
|
:m "$" 'evil-end-of-visual-line
|
||||||
|
:m "0" 'evil-beginning-of-visual-line
|
||||||
|
|
||||||
|
;; But use normal, non-visual lines for operators
|
||||||
|
:o "j" 'evil-next-line
|
||||||
|
:o "k" 'evil-previous-line
|
||||||
|
:o "$" 'evil-end-of-line
|
||||||
|
:o "0" 'evil-beginning-of-line
|
||||||
|
|
||||||
:nv "K" 'smart-up
|
:nv "K" 'smart-up
|
||||||
|
|
||||||
;; Don't move cursor on indent
|
;; Don't move cursor on indent
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue