Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vi in /etc/init.d creates a template
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
vervain
n00b
n00b


Joined: 09 Jan 2003
Posts: 11
Location: Leeds, UK

PostPosted: Mon Aug 21, 2006 11:43 pm    Post subject: vi in /etc/init.d creates a template Reply with quote

To my surprise...
Code:
 $ vi /etc/init.d/foo


Opens foo with a template of:
Code:

#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

depend() {

}

start() {

}

stop() {

}

restart() {

}


I like it... anyone mind explaining how that is done. I'm thinking it should be in the vim config files somewhere but I've not had much of a chance to find it... but I like it (kinda).

Verv
Back to top
View user's profile Send private message
DarrenM
l33t
l33t


Joined: 25 Apr 2002
Posts: 653
Location: Sydney, Australia

PostPosted: Mon Aug 21, 2006 11:56 pm    Post subject: Reply with quote

The scripts are in /usr/share/vim/vimfiles

NFI how they work though. :)
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Tue Aug 22, 2006 12:32 am    Post subject: Reply with quote

That's done by app-vim/gentoo-syntax, which is unfortunately now unmaintained. The script you want is newinitd.vim.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum