Loading ...
Sorry, an error occurred while loading the content.

Re: Creating a function from selecting the current word

Expand Messages
  • Luc Hermitte
    Hello, ... It is not exactly what you are looking for, but you can try the version of MuTemplate I ve bee working on [1]. It is possible to have the date
    Message 1 of 2 , Sep 1, 2004
    • 0 Attachment
      Hello,

      * On Wed, Sep 01, 2004 at 07:29:55AM -0500, Sean C. Hubbell <sch@...> wrote:
      > Currently I have a :read $VIM\MyTemplate.txt and then substitude using
      > the function name. I then have a key mapping that I then use to insert
      > the date: nnoremap <F4> $a<CR><HOME> <C-R>=expand
      > (strftime("%d %b %y"))<CR> - Created. SCHubbell<ESC>

      It is not exactly what you are looking for, but you can try the version
      of MuTemplate I've bee working on [1].
      It is possible to have the date automatically expanded and vim asking us
      about the name of the function.

      HTH,

      [1] http://hermitte.free.fr/vim/ressources/mu-template.tar.gz
      --
      Luc Hermitte
      http://hermitte.free.fr/vim/
    Your message has been successfully submitted and would be delivered to recipients shortly.