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
Post new comment