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.

549 questions
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,447
  • 2
  • 22
  • 40
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
8
votes
2 answers

Making `dj` delete two lines in evil mode

dj in vim deletes the current line as well as the next. It's a bit idiosyncratic (in that it doesn't really make sense as a motion) but I've come to rely on it. In evil, however, dj deletes only the current line. How can I remap it so that it has…
user1953221
  • 211
  • 1
  • 5
7
votes
1 answer

How to disable evil-mode everywhere?

I have recently installed emacs doom, and I tried to customise it with some custom keybindings. I have found that Evil is just not something I want. I can disable it on a per-buffer basis with M-x turn-off-evil-mode, but I do not want to have to…
Dario
  • 83
  • 1
  • 5
7
votes
1 answer

How to set evil-mode to use evil-emacs-state-mode in new buffers?

So far, I've tried this, but it doesn't see to be working - new buffers still start in normal mode. I'd prefer to default to evils emacs mode, and be able to switch into evil with C-z when I'm ready (setq evil-emacs-state-modes (append…
banjomonster
  • 183
  • 1
  • 7
6
votes
1 answer

How to check the current state in evil mode?

When writing elisp for evil mode, how can you check the currently active evil state?(normal, visual, insert... etc)
ideasman42
  • 8,786
  • 1
  • 32
  • 114
6
votes
0 answers

Evil: how to execute multiple commands at command line?

I want to execute a list of commands all at once in the evil's command line. In vim, you can use the pipe to execute multiple commands, like this: %s/ó/o/g|%s/ç/c/g How can I do this in evil?
Jesse
  • 1,994
  • 12
  • 19
6
votes
1 answer

How do I jump to the next sentence in evil?

When i press ) in Vim it jumps to the next sentence. In evil, however, ) (evil-forward-sentence) at the beginning of the following paragraph takes you to the paragraph's end, while in Vim it jumps to "Donec a diam": Lorem ipsum dolor sit amet,…
Jason Mirk
  • 723
  • 4
  • 16
6
votes
2 answers

How might I define (or fake) a mode-local ex command with evil?

It is possible to define ex commands using evil-ex-define-cmd. For example, :quit is defined as: (evil-ex-define-cmd "q[uit]" 'evil-quit) I'd like to override this behaviour in particular modes; in particular, when running in git-commit-mode, I'd…
Kevin Ushey
  • 163
  • 5
5
votes
2 answers

Exiting insert mode in Evil mode and saving immediately (Ctrl + [, :w) causes errors

I've recently shifted to Emacs + Evil for my dev setup, and seem to be running into a rather strange issue with Emacs 24: when I exit Insert mode using Ctrl+[ and try to save the file with :w, Emacs enters the debugger with this error…
Popeko
  • 91
  • 5
5
votes
1 answer

Get rid of evil's state info such as ` -- INSERT -- ` in the echo area

How can I get rid of the state information of evil in the echo area? I've already displayed it in the status bar and there is no need to occupy the echo area.
xuhdev
  • 1,899
  • 14
  • 31
5
votes
2 answers

How to quit evil mode?

My vim-using co-worker came by, and since he wanted to do something with files on my PC, I installed evil-mode to allow him to do this more efficiently (vim user trying to accomplish anything in emacs is a sad view). Now I've got a problem: I don't…
MatthewRock
  • 1,483
  • 13
  • 28
5
votes
1 answer

Emacs evil-mode: how to make visual selection to include diacritics?

For a text "naïve", for example, and the cursor is at "n", if I press vll, "naï" is highlighted, but if I press y, the yanked text is "nai", not "naï". How to make visual selection to include all diacritics/combining characters at the selection…
aggu
  • 101
  • 3
5
votes
1 answer

Evil package/alternative for motion through CamelCase words?

Most programming languages use CamelCase ("anIdentifier") naming conventions for identifiers. With Evil, you could navigate inside those identifiers using Evil built-in motions is the [count]f{char} motion, i.e. f{uppercase-char} or f_,…
ReneFroger
  • 3,850
  • 23
  • 66
4
votes
3 answers

Installing evil-mode: ad-handle-definition 'evil-mode' got redefined

I just installed evil-mode from melpa and when the installation finishes I get the message ad-handle-definition: 'evil-mode' got redefined. I can then enable evil-mode but get the same warning. But the next time I open emacs and try to enable…
gaqzi
  • 141
  • 2
1
2 3 4 5 6 7