LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need help with a script for vi (https://www.linuxquestions.org/questions/linux-software-2/need-help-with-a-script-for-vi-304913/)

thtr2k 03-22-2005 10:46 PM

Need help with a script for vi
 
Does anyone know how to write a scipt to generate a file in vi. Where to put this file.
Example:
in the command mode: vi filename.java
in vi texteditor: should appear something like this

/*##############################################
# File: filename.java #
# Date: date created #
# Author: yourname #
# #
################################################/

class filename
{
public static void main (String [] args)
{

statements

}
}


// End of file

druuna 03-23-2005 04:17 AM

Crosspost, answer is in other thread

jtshaw 03-23-2005 08:12 AM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php


All times are GMT -5. The time now is 01:26 AM.