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
0
votes
0 answers

Meta key not working in Emacs with evil mode (even in the Gui verision) (MAC)

I have started using Emacs as my editor and because I used to use vim as my editor, I decided to try Evil mode on Emacs. The problem is that if I try using the meta key (esc key) with another key (M-x as an example), the command doesn't get…
0
votes
1 answer

3 consecutive key bindings in evil normal mode

Nowadays I'm using evil-mode in Emacs. One of my problem is, I'm not able to define 3 consecutive key bindings. If I set like this, (define-key evil-normal-state-map (kbd "crh") 'my-own-function) then, it shows this error message. Key sequence c r…
windrg00
  • 457
  • 3
  • 9
0
votes
2 answers

can I select it without more alphabet in emacs?

I am in above picture. I want to select common-media-session.h, but I always select it using tab or c-n or c-p in vim. Can I go to next candidate like vim?
geeeek
  • 375
  • 2
  • 13
0
votes
1 answer

Exchange point and mark in Vim selection

I want to exchange point and mark in a selection of text using vanilla Vim. Consider a code block with some comments immediately preceding the block. Suppose I want to operate only on the code block. I can select the paragraph with vip. Doing…
Lorem Ipsum
  • 4,020
  • 4
  • 41
  • 67
0
votes
1 answer

How do I pass a variable to the kbd function?

I have the following snippet: (setq evil-string-inflection-bind "g~") (define-key evil-normal-state-map (kbd evil-string-inflection-bind) 'evil-operator-string-inflection) The above snippet will not work. Now I know for a fact that this works:…
ninrod
  • 523
  • 6
  • 25
0
votes
0 answers

Emacs OSX 10.13 configuration issue

Recently I pass to Emacs org because is really convenient to me to write note there. So I installed all packages I needed (principally ORG and EVIL) but I didn't understand how to setup everything. I installed emacs from brew without using cask, I…
0
votes
0 answers

How to paste a register inside of the expression register

If I am using evil-mode and insert mode, is it possible to paste another register once I have entered C-r =? When I try this, instead of inserting the register I requested e.g. C-r ", which should insert the last thing I deleted, it tries to do a…
potong
  • 55,640
  • 6
  • 51
  • 83
0
votes
1 answer

Go to definition emacs evil with xref-js2

I'm trying to switch to emacs from vim. I've installed js2-mode, xref-js2 and evil of course. And when I try to go to definition with M-. I get the message: "Previous command was not evil repeat:..." and previous command. So is there any way (work…
gi4c0
  • 31
  • 5
0
votes
1 answer

Spacemacs evil-insert at start of line? (Emacs Evil Mode)

I finally got this to work, but wanted to know if there was an easier way. I want to bind a key "U" to put spacemacs into insert-mode, but at the start of the text of the line. (define-key evil-normal-state-map "u" 'evil-insert) (define-key…
Quang Van
  • 11,475
  • 12
  • 57
  • 61
0
votes
1 answer

Change cursor to insert state while in minubuffer

I change my cursor based on state in evil. However I notice that when I type in the minibuffer I'm in normal mode. I'm trying to make code that change the state from whatever it's in to insert state while I type in the minibuffer and switch back…
Piglet
  • 73
  • 2
  • 7
0
votes
0 answers

Spacemacs/Evil backward delete from line end

In Vim if I need to change the last word in line (ex. word "bar") when cursor is at the end (char "r"): foo bar nextLine I type `lcb' and get: foo nextLine But in Spacemacs after lcb (I have (setq-default…
A.King
  • 172
  • 2
  • 11
0
votes
0 answers

whats the correct way to paste from registers in insert mode?

Title says it all really, trying to get the CTRL-R {register} while in insert mode of regular vim working in emacs with evil mode
Mark
  • 3,137
  • 4
  • 39
  • 76
0
votes
1 answer

Use non-standard key ("ö") in emacs evil mode for key-chord-define

I use the following mapping to get from evil insert mode into normal mode: (key-chord-define evil-insert-state-map "jj" 'evil-normal-state) This works fine. However, I would like to use the key "ö" on my German keyboard for it: (key-chord-define…
Oliver
  • 441
  • 6
  • 14
0
votes
1 answer

Editing commands to switch to threading macro in evil-cleverparens/clojure

I've been using emacs/evil/cider for a while and finally want to make the plunge into a paredit like environment. I'm trying evil-cleverparens, though imagine this concept applies to any sexp-editor/mode. Say I have a nested sexp (a (b (c d))) and I…
user12341234
  • 6,573
  • 6
  • 23
  • 48
0
votes
0 answers

spacemacs vi bindings not working

I am using spacemacs in GUI mode. I was going through evil-tutor inside spacemacs. It told me to hit "j" to jump to next section. I was unable to do so since it was typing the letter "j" instead inside the buffer. Similarly, I was unable to give…
Chirag Arora
  • 877
  • 1
  • 9
  • 22