Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • by rhesa (5696) on 2006.09.04 4:01 (#49764) Journal
    You could turn on vim's digraphs, and type l*.

    vim magic for this from my .vimrc:
      set encoding=utf-8
      set digraph
    Alternatively, you could use a imap or iab for it, e.g. imap ,\ λ.

    • You could turn on vim's digraphs, and type l*.

      Uh, make that ctrl+k l*. That's a lot harder to type than sub , so I'd go for the imap option.
      • I haven't taken the plunge in the API quite yet, but I did put this in my .vimrc:

            imap <C-L> λ{}<ESC>:set encoding=utf8<CR>i

        And of course, you could just make that type "sub {" for you as well, but lambda reads better :-D