On 06/09/14 04:11, Reid Thompson wrote:
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' )


Umm that didn't work I have looked up SetFormat in the help and it sugests it should work too but when I put the entries in '$HOME/.vim/c-support/templates/Templates' nothing happens. does it need to be in any particular place in the file??
--


  .~.     In my life God comes first....
  /V\         but Linux is pretty high after that :-D
 /( )\    Francis (Grizzly) Smit
 ^^-^^    http://www.smit.id.au/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GM/CS/H/P/S/IT/L d- s+:+ a++ C++++ UL++++$ P++ L+++$ E--- W++
N W--- M-- V-- PE- PGP t+ 5-- X-- R- tv b++++ D-
G e++ h+ y?
------END GEEK CODE BLOCK------
http://www.geekcode.com/

--
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to