From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: the v word but not a religious salvo Date: Tue, 29 Sep 2009 16:33:42 -0500 Organization: Still searching... Message-ID: <87ljjx77wp.fsf@newsguy.com> References: <877hviak30.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254264200 23935 80.91.229.12 (29 Sep 2009 22:43:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Sep 2009 22:43:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 30 00:43:13 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MslPc-00077s-UM for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 00:43:13 +0200 Original-Received: from localhost ([127.0.0.1]:52935 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MslPc-0004UO-Fe for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Sep 2009 18:43:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MskKt-0007rd-MU for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 17:34:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MskKo-0007kY-F1 for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 17:34:14 -0400 Original-Received: from [199.232.76.173] (port=42204 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MskKn-0007jr-Vi for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 17:34:10 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:35446) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MskKn-0000MJ-En for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 17:34:09 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MskKk-00046d-LZ for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 23:34:06 +0200 Original-Received: from c-98-215-178-110.hsd1.in.comcast.net ([98.215.178.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Sep 2009 23:34:06 +0200 Original-Received: from reader by c-98-215-178-110.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Sep 2009 23:34:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-110.hsd1.in.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:SpuZIj7wZ9ZTT5Fs3O8wsts2dRw= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68543 Archived-At: Lennart Borgman writes: > On Mon, Sep 28, 2009 at 10:30 PM, Harry Putnam 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.