Top "Vi" questions

vi is a family of text mode-oriented text editors.

How do I exit the Vim editor?

I'm stuck and cannot escape. It says: "type :quit<Enter> to quit VIM" But when I type that …

vim vi
Tab key == 4 spaces and auto-indent after curly braces in Vim

How do I make vi-Vim never use tabs (converting spaces to tabs, bad!), makes the tab key == 4 spaces, and automatically …

vim whitespace indentation vi auto-indent
Copy all the lines to clipboard

Is there any way to copy all lines from open file to clipboard in VI editor. I tried yG but …

vim editor keyboard-shortcuts vi
How to replace a character by a newline in Vim

I'm trying to replace each , in the current file by a new line: :%s/,/\n/g But it inserts what …

vim replace escaping newline vi
Indent multiple lines quickly in vi

It should be trivial, and it might even be in the help, but I can't figure out how to navigate …

vim editor indentation vi
What is your most productive shortcut with Vim?

I've heard a lot about Vim, both pros and cons. It really seems you should be (as a developer) faster …

vim vi
How do I move to end of line in Vim?

I know how to generally move around in command mode, specifically, jumping to lines, etc. But what is the command …

vim editor keyboard-shortcuts vi
How to duplicate a whole line in Vim?

How do I duplicate a whole line in Vim in a similar way to Ctrl+D in IntelliJ IDEA/ Resharper …

eclipse vim editor keyboard-shortcuts vi
Make Vim show ALL white spaces as a character

I can't find a way to make Vim show all white spaces as a character. All I found was about …

vim whitespace vi hidden-characters
How to effectively work with multiple files in Vim

I've started using Vim to develop Perl scripts and am starting to find it very powerful. One thing I like …

vim vi