Friday, September 5, 2014

Re: what adds an auto heading to my new files??

On Fri, 2014-09-05 at 18:06 +0000, Reid Thompson wrote:
> On Sat, 2014-09-06 at 02:01 +1000, Francis (Grizzly) Smit wrote:
> > >
> > found it some of the stuff in my .vimrc that I inherited from mandrake
> > and ubuntu and God knows where was interfering commented loads out and
> > now it works
>
>
> sorry - got caught up and didn't see the above messages.
>
> in .vim, in the the csupport dir hierarchy are the Template and
> *template* files - -they control what gets inserted/populated/etc
>
> reid
>
------------------------------------------------------------------------------
5.2.1 USER DEFINED FORMATS FOR DATE AND TIME
csupport-templates-date
------------------------------------------------------------------------------
The format for |DATE| ,|TIME| , and|YEAR| can be set by the user. The
defaults are
Example:

|DATE| '%x'
|TIME| '%X'
|YEAR| '%Y'

See the manual page of the C function strftime() for the format. The
accepted
format depends on your system, thus this is not portable! The maximum
length
of the result is 80 characters.

User defined formats can be set using the following function calls in
the
master template file is '$HOME/.vim/c-support/templates/Templates',
e.g.

SetFormat( 'DATE', '%D' )
SetFormat( 'TIME', '%H:%M' )
SetFormat( 'YEAR', 'year %Y' )


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: