Questions tagged [evil]

Evil Mode is a Vim emulation layer for Emacs.

Evil Mode is a Vim emulation layer for Emacs. It is the successor to Vim Mode and Vimpulse, which extended Viper's vi compatibility layer to include a range of Vim functionality.

532 questions
52
votes
8 answers

How to treat underscore as part of the word?

I use Emacs + evil mode. When I position the cursor on e (in normal state) in a chunk of text such as abc_def_ghi, ciw (change inner word) changes only the def part of the string, while Vim would change the entire abc_def_ghi. How can I force evil…
Kossak
  • 1,159
  • 1
  • 9
  • 18
24
votes
3 answers

How can I get undo behavior in Evil similar to Vim's?

The default undo behavior in Evil is too coarse-grained because it considers anything taking place between entering insert mode and leaving it as one edit operation. When you enter a whole paragraph of text during one insert and then execute undo,…
tmalsburg
  • 2,540
  • 1
  • 14
  • 29
21
votes
1 answer

evil-mode visual selection copies text to clipboard automatically

Setup: GUI version GNU Emacs 25.0.50.1 (x86_64-w64-mingw32) of 2015-07-25 on KAEL Compiled from EmacsW64. Package Evil, using the latest version of Evil from MELPA Windows 7 x64 bit. Situation: Tested with empty Emacs configuration with only Evil…
ReneFroger
  • 3,855
  • 22
  • 63
19
votes
1 answer

Differences between evil-normal-state-map and evil-motion-state-map

Documentation for evil-normal-state-map: Keymap for Normal state. Documentation for evil-motion-state-map: Keymap for Motion state. Does Vim have a so-called "motion mode"? In Vim, executing :help Normal-mode would give you the documentation on…
nalzok
  • 665
  • 6
  • 18
17
votes
2 answers

How do I turn off Spacemacs’s tildes on empty lines?

I just installed Spacemacs, mainly for its nifty defaults. One default I'm not so pleased about is that it puts tildes on empty lines in the file. I've tried putting (setq vi-tilde-fringe nil) and (setq indicate-empty-lines nil) inside the…
Violet
  • 488
  • 4
  • 13
15
votes
1 answer

Evil cursor change by state

Until today, when I was in the normal state in evil, the cursor was a block, and it would switch to an I-beam when in insert state. Something changed, however, and the cursor is now always the I-beam. How can I get the old behavior back? More…
Ryan
  • 3,989
  • 1
  • 26
  • 49
15
votes
2 answers

How do I jump out of enclosing parentheses?

I'm using spacemacs to edit Python code. When I type an opening parentheses, the closing parentheses is automatically inserted for me and the cursor is put in the middle for further typing. But: once I am done typing inside the parentheses, I need…
Aviral Goel
  • 153
  • 1
  • 4
15
votes
1 answer

Instructions on how to work with Evil Mode

I am considering in giving Evil Mode a chance. I have searched extensively to find how do you use it and everyone is just sharing their customizations. What I can't understand is when you install and activate Evil Mode does automatically use the…
Adam
  • 2,407
  • 2
  • 21
  • 38
14
votes
7 answers

Evil: map keybindings the vim way?

I am trying to make the Evil function evil-jump-to-tag, C-] behave like the Emacs binding M-.. The normal behaviour is fine for browsing Tags files, but I want it to work also for Slime's slime-edit-definition, Elisps'…
martin
  • 356
  • 3
  • 10
13
votes
1 answer

Using evil in the minibuffer

evil-mode does not seem to bind keys in the minibuffer. Is there a way to use evil in the minibuffer? It's hard to use Vim-style keybindings everywhere BUT the minibuffer.
Panch93
  • 265
  • 2
  • 8
13
votes
3 answers

Is there an equivalent to sed-style substitution commands from vim?

One of the things I miss from vim is being able to type in a substitution command that will work over multiple lines, for example: :/begin/,/end/s/foo/bar/g The above command substitutes "foo" for "bar" starting with the first line containing…
Larry Coleman
  • 1,465
  • 2
  • 11
  • 10
13
votes
2 answers

hybrid line number mode in emacs?

Is it possible to show the absolute number of the current line, instead of "0", when in relative line number mode? This is sometimes referred to as "hybrid line number mode". Like this: 7 …
vt5491
  • 303
  • 3
  • 7
12
votes
2 answers

Fold all methods in a Python class with Evil

How can I fold all the methods in a Python class? I use Evil and would prefer a pure Evil solution, if possible. I'm looking for a quick way to take something like this: class LongClassIDidNotWrite(): def method1(): junk... …
Lorem Ipsum
  • 4,327
  • 2
  • 14
  • 35
12
votes
2 answers

Is there a table of Evil keys for Dired?

I am learning Dired in Evil mode. h j k l / are Evil keys that obviously work in Dired. Are there others? Is there a table of Evil keys for Dired? I am using Emacs 25.2.1 with Evil, Spacemacs, and Ivy.
wolfv
  • 1,403
  • 1
  • 13
  • 30
12
votes
4 answers

Possible not to use undo-tree in evil mode?

Every so often I run into bugs in undo-tree, where I can't redo, with the following: primitive-undo: Unrecognized entry in undo list undo-tree-canary Links to references to this issue: Bug report. Bug report. Reddit thread. This is really bad and…
ideasman42
  • 8,375
  • 1
  • 28
  • 105
1
2 3
35 36