All Questions
17 questions
0
votes
1
answer
91
views
moving cursor forward-sexp goes one char further in evil mode
When I want to highlight the following region
(a ( b ( c ) ) ) )
I get
(a ( b ( c ) ) ) )
I mark the beginning and do forward-sexp (or sp-forward-sexp, which results in the same outcome)
In, insert ...
0
votes
1
answer
100
views
define a new evil command
I'm trying to reverse some words, and I have it set up where I can visually select them and hit ,rw to reverse them.
How do I set it up so ,rw also works with a motion. E.g. ,rw3w to reverse 3 words?
...
0
votes
1
answer
112
views
Evil cursor moves one position right after exiting append mode, how to let it stay?
Similarly to the question Cursor moves one position left after exiting insert mode? I would like to know the similar thing, but now for the append command. I want the cursor to stay when exiting both ...
2
votes
1
answer
262
views
How to go back within the ellipsis of a collapsed Org section?
I am using Emacs with evil-mode enabled.
I would love to be able to move back using h when the cursor is exactly at the last character of a folded org file (as shown in the picture).
However, when I ...
0
votes
1
answer
202
views
Evil mode motion: between blocks of text
Block motion
I would like to quickly swape through files and j k and / aren't cutting it anymore.
Is there a command to move between blocks of text?
For example:
What I mean by block movement,
...
2
votes
2
answers
943
views
how to define an evil-operator to move forward/backward a text-object?
I am trying to define a function that moves to the begin/end of current text-object.
First - I define an operator:
(evil-define-operator evil-forward-text-object (beg end type)
"move to end of ...
4
votes
1
answer
300
views
Ignore tags in `org-end-of-line` and similar motions
Is there a convenient function for jumping to the last non-tag character in the line of an org-mode heading? For instance...
* This is |my header :tag1:tag2:
I would like a command that moves ...
0
votes
0
answers
133
views
Enable Evil jump to work across all panes instead of only active pane
Is there a way to enable evil-jump-forward and evil-jump-backward to use the jump list of all panes instead of only the active pane?
In the gif below, here's what happens:
Start on left pane at ...
3
votes
1
answer
415
views
Make evil paragraphs behave like vim paragraphs
I have moved from vim to emacs using evil-mode. I've found that I prefer emacs (as long as I can edit text vim style), but I have one small inconvenience. I've found, mainly while writing prose, but ...
0
votes
1
answer
288
views
Custom keybinding for jumping down 2 lines on spacemacs (evil-mode)
What I want is to have the option to scroll faster.
Currently when in evil-mode normal state when I press j evil-next-visual-line is called. If I hold jthen the cursor moves down.
What I want is ...
4
votes
3
answers
1k
views
Moving cursor to the middle of the line where it currently is
Is there a way to define a function that, when called, would move the cursor to the middle (or close to the middle) of the current line, similarly to how we can move it to the beginning and end of the ...
1
vote
2
answers
3k
views
How to make end-of-buffer move to the last line not beyond it?
I'm playing with evil-mode and this is one of the things where evil differs from vim. In vim G takes you to the last line, but evil uses Emacs end-of-buffer which for some reason takes me beyond last ...
0
votes
1
answer
654
views
How to jump out of any surrounds?
Not just parenthesis, but any surround. We are given the advantage of a pair being made and the cursor conveniently placed within. That's only 1/2 the procedure; what about jumping out?
Previous (...
2
votes
1
answer
290
views
Vertigo doesn't work properly with evil motions
I'm using vertigo with evil in the following way:
(evil-define-motion vertigo-j (count)
"Evil vertigo motion. Count has no effect."
(vertigo--jump #'evil-next-line "Jump down: "))
...and I map ...
5
votes
1
answer
1k
views
How to jump up or down to first non-whitespace character in same column
I use evil-mode with Emacs and would like to accomplish this via evil-mode, but would be fine with doing it in an Emacs-centric way too. The subject line explains it well, but here is a post in which ...
0
votes
1
answer
80
views
Programatically get available movements evil emacs
Is there a way to programatically get the available movement commands for evil emacs?
Preferably also with the key they are currently bound to.
(There are a lot of commands for movement, but I do ...
0
votes
1
answer
125
views
restore cursor position iedit mode after narrowing with evil visul line
Iedit-mode can narrow the edit to a region, I am using evil-mode, evil-visual-line select region by whole lines, after narrowing the point is at the end of last line, is it possible to fix this ...