View previous topic :: View next topic |
Author |
Message |
vervain n00b
Joined: 09 Jan 2003 Posts: 11 Location: Leeds, UK
|
Posted: Mon Aug 21, 2006 11:43 pm Post subject: vi in /etc/init.d creates a template |
|
|
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 |
|
|
DarrenM l33t
Joined: 25 Apr 2002 Posts: 653 Location: Sydney, Australia
|
Posted: Mon Aug 21, 2006 11:56 pm Post subject: |
|
|
The scripts are in /usr/share/vim/vimfiles
NFI how they work though. |
|
Back to top |
|
|
ciaranm Retired Dev
Joined: 19 Jul 2003 Posts: 1719 Location: In Hiding
|
Posted: Tue Aug 22, 2006 12:32 am Post subject: |
|
|
That's done by app-vim/gentoo-syntax, which is unfortunately now unmaintained. The script you want is newinitd.vim. |
|
Back to top |
|
|
|