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

spacemacs evil-mode: ctrl-x-p and ctrl-x-l equivilents

In standard vim, control + x-p triggers word completion and control + x-l triggers line completion. I've transitioned towards using spacemacs with evil-mode as my main editor for application development. Does evil-mode support some way of…
David Shaked
  • 3,171
  • 3
  • 20
  • 31
1
vote
1 answer

rebinding ESC in insert mode

In Evil, The default binding of ESC in insert mode is (evil-normal-state nil). I want to rebind ESC in insert mode like this: (define-key evil-insert-state-map (kbd "ESC") (lambda () (interactive) (message "hello"))) However,…
Piglet
  • 73
  • 2
  • 7
1
vote
1 answer

Artist Mode Evil Integration

I'm trying to be able to draw ascii art in emacs picture-mode by moving left, down, up, and right with the j,h,k,l keys in evil-normal-mode. To do this I used these bindings: (nmap :keymaps 'picture-mode-map "k" (lambda () …
Piglet
  • 73
  • 2
  • 7
1
vote
1 answer

emacs evil mode binding mouse event

I've made these bindings. (define-key prog-mode-map [double-down-mouse-1] 'evil-jump-to-tag) (define-key evil-motion-state-map [down-mouse-1] nil) (define-key prog-mode-map [mouse-8] 'xref-pop-marker-stack) It works but there's a little…
windrg00
  • 457
  • 3
  • 9
1
vote
1 answer

Is there any built-in support for Ruby motions and text objects in Spacemacs?

There're some handy Ruby motions and text objects defined in vim-ruby like ]m (motion moving to the next method) or am (text object for a method). Is there any built-in support for those in Spacemacs? If not, how do I configure those in the…
Domon
  • 6,753
  • 1
  • 25
  • 29
1
vote
1 answer

M-x man: How to open the buffer in the current window, and in `evil-normal-state'

When I type M-x man, it opens up a split and it behaves like a special buffer. I want that when I invoke M-x man that it takes over the current window, and not open up any new splits. Also, I want it to behave like any normal evil text buffer…
ninrod
  • 523
  • 6
  • 25
1
vote
1 answer

Mapping Evil-Ex-Command to "ei" in Emacs

In Emacs evil-mode, I'm trying to bind the string "ei" to an ex command that opens up my init file. This is what I came up with: (defun edit-init () (find-file "~/.emacs")) (evil-ex-define-cmd "ei" 'edit-init) When I try to run the ex command…
nslamberth
  • 1,147
  • 8
  • 10
1
vote
1 answer

Does evil-org-mode work well in org-drill?

I am a Vim user interested in using org-drill (org-drill is an extension for org-mode). But before I invest in learning Emacs, I would like to know if evil-org-mode works well in org-drill.
wolfv
  • 971
  • 12
  • 20
1
vote
1 answer

Swap : and ; to make colon commands easier to type in Emacs

I just started using emacs with Evil mode. In my .vimrc file I had the following: nnoremap ; : nnoremap : ; What would I put in my .emacs file to achieve the same thing in emacs evil mode?
Tom
  • 1,986
  • 2
  • 18
  • 29
1
vote
0 answers

avoid exiting yasnippet with escape while in evil mode's insert state

Is it possible to change yasnippet so it won't exit on escape during evil mode's insert state? I would like to be able to manipulate the text while still editing the snippet. Thanks!
Haj
  • 21
  • 2
1
vote
0 answers

Update linum and linum-relative background on color theme change in emacs/spacemacs

Trying to get the line numbering right aligned with a separator space and the same background color as the line highlighting in Spacemacs was quite complicated. Specialy when it came to do both at the same time in linum and linum-relative. I don't…
jbssm
  • 6,861
  • 13
  • 54
  • 81
1
vote
2 answers

GNU emacs 24.x: Turn off evil-mode when using buffer selection menu of BufferSelection package

I am using the bs-show function via the mapping: (global-set-key (kbd "C-x C-b") 'bs-show) However, since I also use evil-mode I find that the single key commands do not work until I switch from normal ("N") mode to emacs ("E") mode within evil each…
Setjmp
  • 27,279
  • 27
  • 74
  • 92
1
vote
1 answer

Evil in dired/dired+ keymapping

I'm looking for a way to navigate in dired/dired+ and evil mode by using 'h' 'j' 'k' 'l' like as in vim netrw. I've found some lisp phrases and applied those but those don't work at all. For instance, (eval-after-load 'dired '(progn ;; use…
windrg00
  • 457
  • 3
  • 9
1
vote
0 answers

How to simplify the mode-line, and enter evil-insert-state depending on buffer name

Three questions actually, as stated in the title and shown in the figure.
Charles Lu
  • 491
  • 2
  • 10
1
vote
0 answers

evil visual mode selection

The behavior of evil visual mode is a little unexpected. First, I set the mark at the top '(defhydra', then use C-n to move the point down, everything goes all right until I hit the last line ("q" nil), the cursor move down two lines all of a…
Charles Lu
  • 491
  • 2
  • 10