Wednesday, April 7, 2010

vi opening a file

To open a file in read-only.
$)view practice.c
or
$)vi -R practice.c

To open a file at line number [10]
$) vi +10 practice.c

To open a file at a particular sequence

$)vi +/main practice.c

No comments:

Post a Comment