all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Harry Putnam <reader@newsguy.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: the v word but not a religious salvo
Date: Wed, 30 Sep 2009 02:15:10 +0200	[thread overview]
Message-ID: <e01d8a50909291715m4014851fp20d4012a0820e854@mail.gmail.com> (raw)
In-Reply-To: <87ljjx77wp.fsf@newsguy.com>

There is a special mailing list for yasnippets. I think you are
missing something if you think it can't do more...


On Tue, Sep 29, 2009 at 11:33 PM, Harry Putnam <reader@newsguy.com> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>> On Mon, Sep 28, 2009 at 10:30 PM, Harry Putnam <reader@newsguy.com> wrote:
>>> I wondered if anyone here is at all familiar with the different
>>> insertions related plugins for vim?
>>
>> I am not using it currently, but have you looked at yasnippet
>>
>>    http://www.emacswiki.org/emacs/Yasnippet
>>
>> It would be interesting to hear how it compare. (Maybe you could add
>> something on the wiki?)
>
> I can't compare because I haven't used vims xpt but so far I guess I'm
> a little bit disappointed.
>
> The docs say you can insert whole templates but when I tried that in
> cperl mode... I find most of them aren't anything more than what cperl
> already does.  There are a few on the list that do more.
>
> But for example... the for loop template inserts a kind of for loop
> that isn't near as common this kind... at least in my experience:
>
>  for (@ar){
>    dosomething;
>  }
>
> Instead it offers:
>
>   for (my $var = 0; $var < expression; $var++) {
>      # body...
>   }
> Which is really a different kind of usage.
>
> I realize you can make your own and edit the defaults... but then I
> can already do that with skeletons.
>
> The difference is that you can tab thru the for loop offered and fill
> it out all the way ... so that is saying something.  But most of the
> offerings for perl that isn't true.  Or only partly true.
>
> Somehow I guess I expected more.. like a whole starter script being
> inserted.
>
> I'm sure I can set that up in yasnippets too, but I already have a
> skeleton doing that job.
>
> Hopefully as I work with yasnippets and learn more about it... it will
> get better and better.
>
>
>
>




  reply	other threads:[~2009-09-30  0:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-28 20:30 the v word but not a religious salvo Harry Putnam
2009-09-28 20:44 ` Lennart Borgman
2009-09-29 21:03   ` Harry Putnam
2009-09-29 21:33   ` Harry Putnam
2009-09-30  0:15     ` Lennart Borgman [this message]
2009-09-30  6:01       ` Harry Putnam
2009-10-01 17:57         ` Andreas Röhler
2009-10-08 16:57           ` Harry Putnam
     [not found]           ` <mailman.8336.1255021189.2239.help-gnu-emacs@gnu.org>
2009-10-13 16:56             ` rustom
     [not found]       ` <mailman.7741.1254290555.2239.help-gnu-emacs@gnu.org>
2009-09-30 18:13         ` Livin Stephen
2009-09-28 20:49 ` Matt Lundin
2009-09-29 23:04 ` Shelagh Manton
     [not found] <mailman.7665.1254169850.2239.help-gnu-emacs@gnu.org>
2009-09-29  8:55 ` David Kastrup

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e01d8a50909291715m4014851fp20d4012a0820e854@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=reader@newsguy.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.