Wednesday, January 27, 2010

Vi tips & trciks

This starts with my curiousity. I sent a question to fedora list

I come cross a remote server, when I type vim x.pl, it pops up a
default format as below. It is nice. I look through my server,  can't
figure out how to set up the vi parameters. Could some one show me
how?

I am on gnome desktop of F12.


#!/usr/bin/perl
#=============================


#FILE:  x.pl
#USAGE:  ./x.pl

#DESCRIPTION:

#OPTIONS:  ---
#REQUIREMENTS:  ---
#BUGS:  ---
#NOTES:  ---
#AUTHOR:   (), <>
# COMPANY:
#VERSION:  1.0
#CREATED:  01/27/2010 07:55:21 PM CST
#REVISION:  ---
#=============================

use strict;
use warnings;

got hint from a reader http://lonehacks.blogspot.com/. I installed vim-perl-support. It works brightly. Here is an addition link for vi fun vi-vim-tips-and-tricks.

Happy Vi

No comments:

Post a Comment