Vim is a very powerful console based text editor specially designed for programmers
Vim basically has two modes which are explained below
Vim basically has two modes which are explained below
Insert Mode
To Start Editing the text use insert mode
press i on your keyboard to turn on insert mode...
Command Mode
To issue commands, such as save or quit use command mode
press Esc key on your keyboard to turn on command mode....
To save (write to file)
To quit
To save and quit
:w
To quit
:q
To save and quit
:wq
Note : To Enable C-style indentation issue this command on command mode
This post will let you start with vim
:set cindent
This post will let you start with vim
Comments
Post a Comment