Top "Vim" questions

Vim is a free and open-source modal text editor available for most major platforms.

Differences between Emacs and Vim

Without getting into a religious argument about why one is better than the other, what are the practical differences between …

vim emacs editor
Turning off auto indent when pasting text into vim

I am making the effort to learn Vim. When I paste code into my document from the clipboard, I get …

vim configuration editor indentation auto-indent
How does the vim "write with sudo" trick work?

Many of you have probably seen the command that allows you to write on a file that needs root permission, …

vim sudo
How to convert the ^M linebreak to 'normal' linebreak in a file opened in vim?

vim shows on every line ending ^M How I do to replace this with a 'normal' linebreak?

vim line-breaks
Find and replace strings in vim on multiple lines

I can do :%s/<search_string>/<replace_string>/g for replacing a string across a file, …

vim vi
What is the <leader> in a .vimrc file?

I see <leader> in many .vimrc files, and I am wondering what does it mean? What is it …

vim macvim
How to insert text at beginning of a multi-line selection in vi/Vim

In Vim, how do I insert characters at the beginning of each line in a selection? For instance, I want …

vim editing viemu
Copy and paste content from one file to another file in vi

I am working with two files, and I need to copy a few lines from one file and paste into …

vim copy-paste vi cut
Vim delete blank lines

What command can I run to remove blank lines in Vim?

vim vi
Autocompletion in Vim

I'm having trouble with autocompletion. How can I get a code suggestion while I'm typing? I usually develop in PHP, …

vim autocomplete macvim