Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [vim-emulation]

The tag has no usage guidance.

1
vote
2answers
51 views

Emacs equivalent of 'y%'

In normal mode in Vim, one can use y% to copy text between matching parenthesis. y starts the yanking command and % selects the matching closed or open parenthesis. What is the Emacs equivalent of ...
1
vote
0answers
27 views

Fold all methods in a Python class with Evil

How can I fold all the methods in a Python class? I use Evil and would prefer a pure Evil solution, if possible. I'm looking for a quick way to take something like this: class LongClassIDidNotWrite(...
0
votes
0answers
59 views

Implement vim's Ctrl-O and Ctrl-I in emacs

I find this to be a great feature from vim, and I miss it. I've looked around, and it seems that one can add the current position to some mark ring, and then come back. But that's explicit. I need to ...
0
votes
1answer
65 views

Load custom highlighting after colorscheme change

I am a Vim user and i recently decided to try Emacs Spacemacs, i have a problem setting up custom highlighting, i set some lines like the following in my .spacemacs (i guess it's the same problem in ...
1
vote
2answers
137 views

remap vim keys in evil-mode

I would like to do the equivalent of this vnoremap p "_dP in evil-mode. (i.e. I would like paste-replacing to not yank). I want to do the same for c C and P. I tried this: (define-key evil-visual-...
1
vote
1answer
131 views

Whenever I type a caret in emacs, it waits for me to type another character. Can I disable that behaviour?

I'm a relatively new user to emacs, having just come over from many years of using vim. I'm mostly thrilled with evil mode and emacs in general, but there are a few annoyances still lingering. One of ...
2
votes
1answer
116 views

Vim Triple Braces Code Folding in Emacs?

I am migrating from Vim to Emacs because I can't get Org mode to work in Vim. In Emacs is there a way to replicate Vim's marker folding so that # Foo {{{ foo # }}} Turns into +-- 1 lines: # ...
2
votes
2answers
182 views

make * in Spacemacs work like it does in vim

In Spacemacs, is there an easy way to make * (which calls the function spacemacs/enter-ahs-forward) work like it does in Vim? That is, I want * to perform forward searching like in Vim, without ...
2
votes
0answers
35 views

Remove surrounding markup when prettifying symbols

Is there any way to get Emacs to hide surrounding markup when prettifying? That's a feature I really miss from Vim. For example, when editing LaTeX in Vim, the conceal feature can be made to replace ...
0
votes
0answers
195 views

Wanted: vim-like paste behavior from browse-kill-ring

When using the browse-kill-ring package to insert some text from the kill ring, the text always gets inserted before point. This is not intuitive to vim users who are used to pasted text being ...
6
votes
1answer
281 views

Spacemacs : insert single character in normal mode

I am using Spacemacs in Vim mode, and I would like to be able to insert a single character while remaining in normal mode, as described here for Vim. For example, typing SPC i k in normal mode would ...
3
votes
3answers
308 views

Evil mode: How to run evil-indent on the text I've just pasted

When I copy line three below in evil-mode function foo() { } var bar; #copy and paste it at line two, I get function foo() { var bar; #paste } instead of the correctly indented function foo() { ...
1
vote
2answers
1k views

Neovim inside of Emacs as an alternative to Evil mode

I'm a current Neovim user who happens to be interested in Emacs. I like Org mode, as well as some other features of Emacs. However, every time I've tried to use evil mode, it's felt crippled. (The ...
0
votes
0answers
118 views

In Emacs, what is the equivalent of Vim's “nowrap” setting? [duplicate]

In Vim, I can view extremely long lines as if they are "wrapped" or just view as much of the line as fits across the width of the screenturn off the apparent wrapping of lines so that I only see one ...
1
vote
1answer
55 views

Match separated comments in evil mode

everyone, I need that emacs matchit in evil mode works like that one works in vim. Let me explain. I have this lines of code ; {{{ matchit (unless (package-installed-p 'evil-matchit) (package-...
1
vote
0answers
163 views

Equivalent to vim's nnoremap?

Just began transitioning from vim to spacemacs and I can't find a way to define keymappings such as this: nnoremap N Nzz I tried defining it like this: define-key evil-normal-state-map (kbd "N") (...
5
votes
1answer
1k views

How can I translate my .vimrc into evil-mode

I have heard of the power of Emacs, but I have a ton more experience with vim and an extensive amount of shortcuts in my .vimrc file. I would like to transfer these mappings over to Emacs evil-mode. ...
1
vote
0answers
49 views

What are the thoughts behind evil-move-cursor-back? [duplicate]

In Evil, there is the variable evil-move-cursor-back. This is what it's documentation says: "Whether the cursor is moved backwards when exiting Insert state." Now, by default, it is set to t . The ...
3
votes
1answer
312 views

How to make persistent buffer list above frame like in vim powerline

I want to implement behavior similar to mine vim config, where all basic info was below the main frame, like modes, position in file, changes, but above the frame is list of all buffers, with ...
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 ...
7
votes
2answers
574 views

Simulate Vim's virtualedit and nostartofline

In my .vimrc I have set virtualedit=all and set nostartofline. I'd like to have these features in Emacs. Can it be done? virtualedit allows the cursor to be positioned where there are no characters, ...
7
votes
1answer
1k views

What Emacs feature is nearest to Vim's quickfix?

The common use of Vim's quickfix is to hand off compilation of code to a command specified by the suggestively named makeprg variable and then interpret the errors printed by that command so you can ...
4
votes
1answer
371 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 ...
16
votes
2answers
995 views

How to act on rectangles beyond the end-of-line?

Here's what Vim's documentation has to say about it: Virtual editing means that the cursor can be positioned where there is no actual character. This can be halfway into a tab or beyond ...
13
votes
3answers
2k 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 "...
25
votes
3answers
3k views

What's the difference between the different vim implementations?

I'm aware of several different vim implementations in Emacs. There's evil-mode, viper, vimpulse and vim-mode. Are there others? How do they compare? I note that there are a lot of evil-* packages on ...