Legal Disclaimer

Tech in your hand
An easy approach to understand tech specs
Home.
TYH
Learn to Impress
Custom Search

Feedback ? Send it to admin@fullchipdesign.com or join me at fullchip@gmail.com

Legal Disclaimer

Previous.
Next.
GVIM VI VIM GVIM empty GVIM Merge GVIM drop GVIM Num GVim duplicate GVIM time GVIM Make GVIM Markers GVIM spellcheck GVIM Syntax GVIM Reverse GVIM lines GVIM Intro
Home.Pics.LTE Home.OFDMA  .
Introduction to Vim or GVim or VI.

Its a text editor with several built-in short-cuts to simplify day to day operations of file editing. These short-cuts are usaully invoked with : operator. Whenever you type : on your keyboard a section is opened at bottom of the file. This is area where you type further commands to continue execution of expression. Lets discuss one GVIM command line expression below.

Example gvim command -
 
:g/^$/d

Lets notify above gvim expression with generic naming below
:g/regex/command

where
:g
executes a command in the generic operation.
/^$
will match any empty line and its the regex in the generic operation above
/d
is the command to delete the regex.


The editor user-modes are explained Next.
http://newbiedoc.sourceforge.net/text_editing/vim.html

Visual Mode

In this mode you are allowed to select text from the file and perform various operations on it. There are several variants of visual mode. The variants are discussed below.

Enter Visual mode by pressing v (lowercase)  on keyboard - In this variant the text is selected at character level and you can scroll right, left, up and down to highlight exact amount of text needs to be processed.



Insert Mode

Command mode