Top "Vi" questions

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

Search for string and get count in vi editor

I want to search for a string and find the number of occurrences in a file using the vi editor.

search count vi
What are the dark corners of Vim your mom never told you about?

There are a plethora of questions where people talk about common tricks, notably "Vim+ctags tips and tricks". However, I …

unix vim editor vi
Auto-indent spaces with C in vim?

I've been somewhat spoiled using Eclipse and java. I started using vim to do C coding in a linux environment, …

c vim coding-style vi
How to take off line numbers in Vi?

For displaying line numbers in a file, I use command: set numbers What is the command to clear line numbers …

editor numbers vi
How do I tidy up an HTML file's indentation in VI?

How do I fix the indentation of his huge html files which was all messed up? I tried the usual "…

html vim vi indentation
Traversing text in Insert mode

While in Insert Mode in Vim, is there any way to traverse the text moving some characters forward and backward …

vim vi
How do I close all open tabs at once?

If I have 10 tabs opened, I have to close each one using ":q" separately. How can I close them all …

vim vi shortcuts
Syntax highlighting in vim for python

How do I do I set the syntax highlighting in Vim 7 for python? I would like to set my own …

python vim syntax vi vim-syntax-highlighting
vim "modifiable" is off

Trying to create a new file with nerd tree. I hit the a key to create a new file and …

vim vi macvim nerdtree
How to do column editing in vim?

Vim is pretty powerful when editing by line - the search/replace tools are modeled to work linewise. But what …

vim editor vi