Customize your Vi to show line numbers and other stuff

Posted by Elias

I prefer to see the line number when I open a file with Vi, to set this you have to create a file called .vimrc on your home folder, just open a terminal and type:

$ vi .vimrc

then hit the enter key and in the empty file write (after pressing "a" to start adding words:

set number
set filetype=php

then press ESC then write "wq" to write and quit the app and press enter.

Done, your Vi is now showing the line numbers and also formatting the files to make PHP easier to spot.

;)

And if you want to change the settings of the gVim app, just create a file called .gvimrc, once opened you can type:

colorscheme darkblue

to set the scheme you like the most.

Enjoy!

Comments

Re

The customized research paper writing can not constantly be a fun. The freelance essay writing papers could take a long time. Bright people will offer to buy essay paper. I opine that it is the easiest way.
Graceqs (not verified) | Feb 15th, 2010 at 7:02 am

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.