2010年9月18日 星期六

perlomni - sugar for DBIx::Class

I've added some parsing function to perlomni vim plugin to parse result class name and added some dictionary for DBIx::Class:





http://github.com/c9s/perlomni.vim

5 則留言:

  1. Seems useful to those of us with a ton of classes. Thanks! However I just want to point out that typically when shortening 'DBIx::Class' we'll say DBIC, not DBIx, since there's a ton of stuff in the DBIx namespace that has nothing to do with DBIC and we like to be fair to the authors of all that. Good luck continuing work on this.

    回覆刪除
  2. Aha, Thanks for pointing out that. :-)

    回覆刪除
  3. Hey,

    I'm probably not so VI savvy, but when I install this as intructed I just get an error about omnifunc not being defined. I tried setting all sorts of stuff like:

    autocmd FileType perl set omnifunc=perl/perlomni#PerlComplete

    autocmd FileType perl set omnifunc=perlomni#PerlComplete

    autocmd FileType perl set omnifunc=perl/perlomni

    And so forth, but that just gets me a "function not defined error. Any ideas? This is probably something pointlessly silly on my part...

    回覆刪除
  4. Hi,

    which vim version are you using? it requires 7.2 or newer version.

    basically you dont need to setup manually.

    $ make install

    should work.

    and you need to enable filetype plugin in your vimrc:

    filetype on
    filetype plugin on

    by the way, you might like autocomplpop. :-)

    回覆刪除
  5. Ah!

    I was missing:

    filetype on

    had the rest. Seems to be working well now. BTW I'm using macvim 7.3, the version that was released last month. I'm not seeing any serious performance issues with the gui version. I'll let you know how it goes.

    Thanks for the snappy response!

    John

    回覆刪除