Questions tagged [evil]

Evil Mode is a Vim emulation layer for Emacs.

Filter by
Sorted by
Tagged with
1
vote
1answer
827 views

how to enter into visual block mode in evil on windows?

in VIM on MS Windows, I could use C-q to enter into visual block mode. How about in evil? I tried the same but it doesn't work.
1
vote
1answer
370 views

Using evil and elscreen together

I just started using evil-mode after having used elscreen for a long time. evil-mode will bind the C-z key to evil-emacs-state but do you know how I can rebind either this function, or the elscreen ...
2
votes
1answer
314 views

Executing emacs shortcuts when keyboard is set to Greek

Writing Greek in emacs is proving to be quite inconvenient. If my keyboard is set to Greek, normal shortcuts do not work and I have to switch to latin just to navigate around the buffer. As an ...
1
vote
2answers
914 views

How do I change only what “dd” does in evil-mode's normal-state in a minor mode

When I press dd in haskell-interactive-mode at the prompt, it doesn't delete anything, because part of the line is read-only. I would like to map dd to 'haskell-interactive-mode-kill-whole-line. this ...
0
votes
1answer
190 views

How do I bind a key to open or close a mode? (undo-tree)

I'm using evil (via spacemacs) and I want to bind <f2> to open and close the undo-tree (like vim-Gundo). I can successfully bind opening undo-tree-visualize, but I can't figure out how to quit. ...
2
votes
2answers
960 views

Evil mode pasting under line

I'm trying to achieve the following with this: $pricelist = pricelist(); $hotels[$index ]['id'] I want to copy the bottom line into the pricelist() function like this: $pricelist = pricelist($...
3
votes
2answers
2k views

Re-creating .vimrc key mappings in Emacs

I've been using vim for a while (though I'm only a basic user) and I've been trying out Emacs (specifically spacemacs). I have remapped H and L to go to the start / end of the line by adding the ...
6
votes
2answers
3k views

Evil: Is there a default register that does not get overwritten by later yanks to explicit registers?

I often use registers in evil, but I have a common use case that I cannot seem to resolve. I would like to have all copied text stored somewhere that does not get overwritten when I explicitly make ...
14
votes
1answer
10k views

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 ...
7
votes
2answers
4k views

How to access os clipboard using Emacs + Evil

How can i yank to/from windows clipboard when using: Windows 7 (x64) GNU Emacs 24.4.1 (x64) Evil 1.0.9 and having (setq x-select-enable-clipboard nil) in my .emacs? (I put this line there because i ...
4
votes
3answers
325 views

Any idea how turn quotes into double quotes?

One of the things that I love in Vim, was the faster way of insert double quotes (saves me hitting the shift key" inoremap '' ""<Left> So when I press the single quote, and type further, I ...
9
votes
1answer
3k views

How do I set up key bindings for modes in a specific Evil state?

I have a set of key bindings that I use for both web-mode and php-mode in insert mode (of Evil). So I cannot use set-local-map or something. Because in normal mode, the same keys will then call other ...
2
votes
1answer
342 views

Start in insert state based on minor mode

I would like the org capture buffer (which IIUC is in org-capture-mode, a minor mode) to start in insert state; It seems that both the evil-insert-state-modes variable and the evil-set-initial-state ...
3
votes
2answers
849 views

How can I disable “q” in normal state in evil for some modes?

I'm using Spacemacs. I noticed that in help-mode, q quits, which is exactly what I want. However, in certain other modes, customize-mode, for example, q is bound to evil-record-macro. (I set it to ...
1
vote
0answers
352 views

Org Mode & Evil: Prevent editing of hidden text within collapsed subtree

I know that this can be avoided easily, in fact there is a previous question here that covered this matter before, but this only works if we are using Emacs without Evil or using Evil with the emacs-...
5
votes
1answer
4k views

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 (...
9
votes
1answer
2k views

How can I add a new colon-command to Evil?

evil-mode introduces vim-style colon commands (such as :wq to save and close). I have a few commands (such as kill-buffer, org-babel-tangle) that I'd like to be able to run through this instead of ...
1
vote
2answers
254 views

In terminal, C-) and ) both execute evil-forward-sentence. I want C-) to run paredit-forward-slurp-sexp

If I type C-f paredit-forward-slurp-sexp, Emacs tells me the command is mapped to C-). Yet through C-h k I realized that both C-) and ) run evil-forward-sentence. If I do C-f evil-forward-sentence, ...
0
votes
1answer
411 views

How to use evil in emacs 24.4?

This bug currently prevents me switching to 24.4: https://bitbucket.org/lyro/evil/issue/437/m-x-is-undefined-in-emacs-244 Is there a workaround to make both evil and M-x work in 24.4?
6
votes
3answers
2k views

Disable evil-mode when git-timemachine mode is activated

How do I disable evil-mode in a buffer in which git-timemachine is activated?
2
votes
0answers
759 views

How to disable the map from esc to meta?

I installed the oh-my-emacs configuration and try to use emacs in the terminal. oh-my-emacs configuration enables evil-mode in default, and my problem is that, I found esc is mapped to meta, while ...
2
votes
1answer
88 views

How to make evil keymaps inherit from other evil keymaps?

I changed the i key binding in evil-normal-state-map to go up and k to go down (these are just two examples). But evil-operator-state-map and evil-visual-state-map do not change accordingly, but keep ...
39
votes
7answers
9k views

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 ...
3
votes
1answer
280 views

Map a Key to an Evil Operator and to Other Things?

For example, in in lisp-mode, I want to be able to use d as normal but also remap something like "dh" to something like "sp-splice-sexp-killing-backward". In vim you can remap keys like this without a ...
10
votes
2answers
1k views

How to Persist Evil Markers?

I want to be able to save my buffer local evil markers (m to mark a location and then ' or ` to jump to it) across emacs sessions/instances. I'm not really sure how to do this. I tried installing/...
3
votes
1answer
876 views

Pasting in evil-mode when there's an active selection copies the selection

Currently when I select a bit of text replacing another bit of text (eg "viwp" to paste over the current word) it copies the thing I just replaced into kill ring. So if I try to paste over another bit ...
4
votes
2answers
524 views

zs and ze from Vim?

I use evil-mode, but it doesn't support zs and ze shortcuts from Vim (scrolling horizontally to cursor position). How can i map these keys to achieve the same behavior in Emacs? Some explanation of ...
1
vote
1answer
110 views

Advising evil-forward-char seems to trigger advice twice

I am trying to update annoying-arrows to work with evil-mode. Annoying arrows is this minor-mode that complains when you use the same simple movement-command too many times in a row. (I have also ...
2
votes
1answer
800 views

Attempt at remapping evil only remaps some of the keys

I'm attempting to change the mapping of evil mode, and I have placed the code below in my .emacs file. When I start emacs some of the keys have been remapped, while others have not These keys got ...
10
votes
1answer
4k views

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....
3
votes
1answer
1k views

Visual selection highlighting invisible (with Evil and color-theme)

In Emacs color-theme libraries, which items control the visual selection foreground and background? I'm in the process of giving Emacs a try after many years of Vim use. The vim emulator, Evil, is ...
4
votes
3answers
1k views

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 ...
1
vote
0answers
155 views

Evil-mode text objects not working in python.el's python-mode

This only happens in python-mode. When I try to use a text object to, for example, change everything inside or around some brackets (eg ci() it instead edits the first line of the file. So if I have ...
4
votes
1answer
2k views

evil mode - make helm quit with the escape key

I followed this guide to make escape quit from various modes... ;; esc quits (defun minibuffer-keyboard-quit () "Abort recursive edit. In Delete Selection mode, if the mark is active, just ...
4
votes
1answer
421 views

Simulate vim splash screen

I've been trying evil mode in emacs. Unfortunately, it does not remind me to "Help poor children in Uganda!" when I start emacs. Is there a simple way to simulate this? Hopefully there's just a ...
3
votes
1answer
659 views

How to add a key-chord escape in Evil for input in other languages?

How do I get key-chords to work with evil and alternate input-methods? I enabled Korean input by M-x set-input-method and chose korean-hangul, which I found from following the first few instructions ...
20
votes
2answers
4k views

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 ...
1
vote
1answer
280 views

“S” key throws error in Evil mode normal state [closed]

I really like typing in vim, but vimscript makes zero sense. Since I'm getting interested in Lisp/Clojure, and I've heard nice things about evil mode for emacs, I thought I'd give it a try. ...
13
votes
3answers
3k views

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 "...
5
votes
2answers
466 views

Using evil-mode with a function that does not work well with evil-mode

The great org-mode has a fast way to jump between headings in an org file; M-x org-goto or C-c C-j. This doesn't work with evil mode that well. If I am on evil normal mode in an org file, C-c C-j ...
13
votes
7answers
5k views

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-...

1
5 6 7 8
9