public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-syntax r94 - trunk/gentoo-syntax/plugin
@ 2012-01-16 19:07 Christian Ruppert (idl0r)
  0 siblings, 0 replies; only message in thread
From: Christian Ruppert (idl0r) @ 2012-01-16 19:07 UTC (permalink / raw
  To: gentoo-commits

Author: idl0r
Date: 2012-01-16 19:07:41 +0000 (Mon, 16 Jan 2012)
New Revision: 94

Modified:
   trunk/gentoo-syntax/plugin/newinitd.vim
Log:
Minor improvements

Let the GentooHeader() function append the shebang
Jump back to the first line


Modified: trunk/gentoo-syntax/plugin/newinitd.vim
===================================================================
--- trunk/gentoo-syntax/plugin/newinitd.vim	2012-01-16 19:05:42 UTC (rev 93)
+++ trunk/gentoo-syntax/plugin/newinitd.vim	2012-01-16 19:07:41 UTC (rev 94)
@@ -13,6 +13,8 @@
 runtime! plugin/gentoo-common.vim
 
 fun! <SID>MakeNewInitd()
+    call GentooHeader('#!/sbin/runscript')
+
     " {{{ default functions
     put ='depend() {'
     put =''
@@ -27,8 +29,8 @@
     put ='}'
     " }}}
 
-    call GentooHeader()
-    0 put ='#!/sbin/runscript'
+    " Jump back to the first line
+    0
 endfun
 
 com! -nargs=0 NewInitd call <SID>MakeNewInitd() | set filetype=gentoo-init-d




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-16 19:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-16 19:07 [gentoo-commits] gentoo-syntax r94 - trunk/gentoo-syntax/plugin Christian Ruppert (idl0r)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox