Top "Vim" questions

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

Setting the Vim background colors

When I try to change the background colors in .vimrc or directly in Vim using the command: set background=dark ... …

linux background vim vi
How can I add a string to the end of each line in Vim?

I want to add * to the end of each line in Vim. I tried the code unsuccessfully :%s/\n/*\n/…

regex vim replace match
Vim and Ctags tips and tricks

I have just installed Ctags (to help with C++ development) with my Vim (or rather gVim), and would like to …

vim ctags vim-macros
How do I use vim registers?

I only know of one instance using registers is via CtrlR* whereby I paste text from a clipboard. What are …

vim vi
vi/vim editor, copy a block (not usual action)

In vi/vim editor, I need to copy a block. There are many ways, but one way is very quick. …

vim copy-paste vi
How do I exit from the text window in Git?

I am using Windows and before committing, Git wants me to enter a text message and a new text window …

git vim
How to Select Columns in Editors (Atom,Notepad++, Kate, VIM, Sublime, Textpad,etc) and IDEs (NetBeans, IntelliJ IDEA, Eclipse, Visual Studio, etc)

How to select columns in Editors and IDEs to columnar delete, insert or replace some characters ? Editors: Atom Notepad++ Kate …

vim netbeans ide editor notepad++
Vim 80 column layout concerns

The way I do 80-column indication in Vim seems incorrect:set columns=80. At times I also set textwidth, but I …

vim coding-style
How to save as a new file and keep working on the original one in Vim?

Whenever I use the :sav command, it saves the file with a new name and opens the new file open …

vim save save-as
What is in your .vimrc?

Vi and Vim allow for really awesome customization, typically stored inside a .vimrc file. Typical features for a programmer would …

vim refactoring