Using Vi - Newbie Stuff

vi - the editor which i used right from the beginning when i started leanring linux. In this article, i will explain some of the basic commands on how to get started. Instead of getting into vi editor, we will move to VIM which is nothing but Vi-Improved editor

Download from here

http://www.vim.org/download.php

To start vi [root@localhost]$vi filename.txt Opens a file called filename.txt from the currect working directory

save the file

Esc :w

To enter some text

i or insert key which will move you to insert mode or editing mode

To quit vi

Esc :q

To write and Quit

Esc :wq

To quit without writing

Esc :q!
MediaWiki

This page has been accessed 1,394 times.

This page was last modified 19:23, 22 June 2006.