r/DoomEmacs • u/zachatttack96 • Sep 21 '22
Evil - ci) doesn't work as expected
I'm trying out doom emacs coming from neovim, and ci)does not work unless you are inside the parenthesis. I get the message "No surrounding delimiters found" if my cursor is at the beginning of the line of function(variable). In (neo)vim no matter where the cursor is on the line it will jump to the () and change what's inside. How can I edit my config to allow me to do this?
2
Upvotes
2
u/mysockinabox Sep 21 '22
That doesn’t make sense to me, as you aren’t inside the parens. What if the line were
(function(variable))and you were on the f? Jumping forward on a line to the next of a random number of groupings would require language specific heuristics and not be very predictable.It of course can be done, though. I’m surprised neovim does this though, I don’t think vim does.
4
u/tom_dl Sep 21 '22
There's a PR on evil waiting for review which aims to fix this. I'll take a look in a week or two, as I'm away right now.
1
u/Rotatop Sep 21 '22
I
I have same problem as you, I think it worked this way several month ago. Maybe if my memory is good we should install an old evil version ?
I still didn't find a solution.