Top "Vi" questions

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

How to delete selected text in the vi editor

I am using PuTTY and the vi editor. If I select five lines using my mouse and I want to …

linux text-editor vi
Renaming the current file in Vim

How should I rename my current file in Vim? For example: I am editing person.html_erb_spec.rb I …

vim vi
Delete newline in Vim

Is there a way to delete the newline at the end of a line in Vim, so that the next …

unix vim shell ssh vi
Go to beginning of line without opening new line in VI

For ages now I've used SHIFTO and SHIFT$ to move to the beginning and end of a line in vi. …

vim vi
vim line numbers - how to have them on by default?

I can :set number from within a file I'm editing but how can I have them always be on by …

vim vi editing line-numbers
How to go back (ctrl+z) in vi/vim

In normal text editors [with all due respect to Vim] there is a shortcut Ctrl+Z when you have done …

vim vi back undo undo-redo
Is there a short cut for going back to the beginning of a file by vi editor?

When reading a long file by vi editor, it would be very nice to get back to the beginning of …

vi shortcut
How to run vi on docker container?

I have installed docker on my host virtual machine. And now want to create a file using vi. But it's …

linux docker vim text-editor vi
Move entire line up and down in Vim

In Notepad++, I can use Ctrl + Shift + Up / Down to move the current line up and down. Is there a …

vim vi
How do I join two lines in vi?

I have two lines in a text file like below: S<Switch_ID>_F<File type> _…

vim vi