Questions tagged [vim-emulation]
33 questions
26
votes
3 answers
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 MELPA, suggesting none of them are 100%…

Wilfred Hughes
- 6,890
- 2
- 29
- 59
18
votes
2 answers
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 the end
of the line. Useful for…

nanny
- 5,704
- 18
- 38
13
votes
3 answers
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 "bar" starting with the first line containing…

Larry Coleman
- 1,465
- 2
- 11
- 10
12
votes
2 answers
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():
def method1():
junk...
…

Lorem Ipsum
- 4,327
- 2
- 14
- 35
8
votes
1 answer
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 quickly jump to the file, row, and column location…

Praxeolitic
- 387
- 2
- 9
7
votes
2 answers
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, not even whitespace. It allows you to scroll…

Praxeolitic
- 387
- 2
- 9
6
votes
1 answer
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 insert k where the cursor stands, while SPC a k…

BenzoX
- 83
- 3
6
votes
1 answer
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. What would be the best way to do this? One example…

Jason Basanese
- 215
- 2
- 7
5
votes
1 answer
Send content of region or current line to a tmp file, then execute shell script with filename as argument
I am transitioning to Emacs with evil-mode after years of Vim. For work reasons I have to use a GUI statistics program (Stata) frequently. This program does not integrate well with external editors. ess-mode doesn't support the GUI version of Stata…

ilprincipe
- 153
- 4
5
votes
4 answers
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() {
var bar; #paste
}
I'd like to automatically…

achalk
- 579
- 4
- 16
4
votes
2 answers
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 setting for evil-mode.
Update
Thanks MrBones
I find it…

Praxeolitic
- 387
- 2
- 9
3
votes
2 answers
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 opening up the "Symbol Highlight Transient State".

illabout
- 285
- 2
- 14
3
votes
0 answers
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 not just a string with an associated character,…

user8033428
- 51
- 2
3
votes
1 answer
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 separated by color active buffer for active window. Is it…

sandric
- 1,221
- 9
- 19
3
votes
2 answers
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 following at the end of…

baxx
- 137
- 7