On 9/19/10 12:32 PM, björn wrote:
On 19 September 2010 18:12, Robert H wrote:
snippet slurp
    my $${1:var};
    {
        local $/ = undef;
        local *FILE;
        open FILE, "<${2:file}";
        $$1 =<FILE>;
        close FILE
    }${3}


Open a new Vim window, set the ft to perl, go into insert mode, type "slurp"
and hit the tab key to autocomplete...freezes MacVim every time.

It works fine for me -- I did

:e test.pl
:set ft=perl
islurp<tab>

I used the definition of "slurp" that comes with snipmate, which, as
far as I can tell, is identical to your snippet above.

Have you gone throught this:

http://code.google.com/p/macvim/wiki/ReportingBugs


Björn


I know what I did wrong. There is a hard tab required after the snippet declation in the file...I had put a vim line in there #vim :set et .... and I should have just left it alone.

Robert

--
You received this message from the "vim_mac" 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

Reply via email to