Questions tagged [evil-mode]

Evil (Extensible Vi Layer for Emacs) is a vim emulator for emacs

Evil is a reasonably full-featured and extensible vim emulator for emacs. It may be considered the successor to both Vim Mode and Viper/Vimpulse

Evil home page

183 questions
112
votes
7 answers

Evil Mode best practice?

I've been using Vim as my primary editor for years and tried Emacs several times during that time. Then I discovered Evil and decided that it meets my demand for speedy movement well enough that I can finally move on to Emacs. So, to all you Evil…
Daniel Duan
  • 2,493
  • 4
  • 21
  • 24
51
votes
7 answers

Ctrl+U in emacs when using evil key bindings

I'm using the wonderful evil package for vim bindings in emacs. The one key that is not right is Ctrl+U. It is still the emacs prefix, rather than "up". Does anybody have a solution for that in some lisp code for my .emacs? Thanks.
justingordon
  • 12,553
  • 12
  • 72
  • 116
51
votes
1 answer

Difference between Viper, Vimpulse and Evil for Emacs?

I have recently started using Emacs after using Vim for a long time now (like many others out there), and I personally feel that Vim movement keys and text objects are one of the best things an editor can have. I heard about emulating these features…
sasuke
  • 6,589
  • 5
  • 36
  • 35
50
votes
8 answers

How to map "jj" to Esc in emacs Evil mode

Recently I tried Emacs and found Evil helpful to keep my vim custom. I'm used to typing "jj" to return normal mode from insert mode like many Vimers do but don't know how to make it in Evil mode. I map it like this but seems not correct: (define-key…
limon
  • 907
  • 1
  • 9
  • 19
48
votes
2 answers

How can I save evil-mode (vim style) macros to my init.el?

I'm using evil-mode, after moving over from Vim about a year ago. I've made a number of customisations, but not yet worked out how to save vim-style keyboard macros. I can define and run them in evil-mode, using the exact same keys as in Vim. qa…
wooger
  • 500
  • 4
  • 5
33
votes
3 answers

Emacs, org-mode, evil-mode - TAB key not working

I've been working with VIM for decades, and I've become quite proficient in it. I was however sort-of... seduced by Emacs's org-mode, and in order to try it, I installed Emacs and Evil. Evil satisfies most of my VIM-related muscle memory, so I…
ttsiodras
  • 10,602
  • 6
  • 55
  • 71
25
votes
2 answers

How to change granularity level of undo in emacs evil-mode with undo-tree?

These are some awesome options: emacs-24, evil-mode (using vim bindings in emacs), and undo-tree. However, when I'm in edit mode (insert mode), I sometimes jump around for a number inserts, deletes, etc. before hitting escape and leaving insert…
justingordon
  • 12,553
  • 12
  • 72
  • 116
20
votes
5 answers

How to move between visual lines and move past newline in evil-mode

In the 'normal' state of evil-mode, cursor movement is emulating the standard behavior of vim. I want to make it more similar to the standard emacs behavior in the following two ways. I want vertical movement to take place within visual lines,…
kalj
  • 1,432
  • 2
  • 13
  • 30
19
votes
7 answers

Emacs evil-mode how to change insert-state to emacs-state automatically

I don't like the insert-state, and so I want to replace it with emacs-state. But this setting does not work: (add-hook 'evil-insert-state-entry-hook 'evil-emacs-state) After press o or cw, I am still in insert-state.
transtone
  • 193
  • 1
  • 5
16
votes
3 answers

Disabling evil-mode for Nav in Emacs? Or any read-only buffers?

I'm trying to get something like Nerd Tree in Emacs and found Nav, which is like the basic emacs file navigator, and it suits me. The problem is, when I open Nav and switch to its buffer, evil-mode is still on and I have to press C-z if I want to…
Felix D.
  • 2,180
  • 1
  • 23
  • 37
13
votes
1 answer

Why doesn't emacs have a fringe mode in terminal?

I am a hardcore vim user. With the introduction of evil mode and spacemacs, I am transitioning over to emacs from vim. I often edit my code in a dev server (for reasons that I cannot explain), and I have to run my editor in terminal mode. One thing,…
Senthil Babu
  • 1,243
  • 2
  • 11
  • 20
11
votes
3 answers

Emacs Evil mode: how to create a new text object to select words with any non-space characters?

I am trying to create a new text object in Evil. For example, the text object iw will only select subsets of strings containing hyphens. I want the new text object to match words with any non-space characters. What I got so far…
Lionel Henry
  • 6,652
  • 27
  • 33
10
votes
1 answer

set the evil shift width to the buffer-local indentation in emacs

I use evil, which got (defcustom evil-shift-width 4 "The offset used by \\\\[evil-shift-right] \ and \\[evil-shift-left]." :type 'integer :group 'evil) I'd like to set evil-shift-width to the buffer-local indent width…
Reactormonk
  • 21,472
  • 14
  • 74
  • 123
10
votes
2 answers

Rebind digits for normal mode in evil

Is it possible to rebind digits. That, for example, "5" is "$", and "%" is "5"? In evil-maps.el digits are defined like this. (define-key evil-motion-state-map "1" 'digit-argument) (define-key evil-motion-state-map "2" 'digit-argument) ... I tried…
user14416
  • 2,922
  • 5
  • 40
  • 67
10
votes
1 answer

Rebinding :b and :e in evil-normal-state-map

I can't figure out how to rebind the :b and :e commands in evil-mode for Emacs. Google isn't much of a help either. I have tried (define-key evil-normal-state-map ":b" 'helm-buffers-list) but that screws up the : key for entering…
aerique
  • 982
  • 5
  • 21
1
2 3
12 13