Tools: December 2007 Archives

Make vim support Perl 5.10

| | Comments (1)

The new say function isn't supported by the perl.vim file that ships with vim. Nick Hibma, the maintainer, tells me it will be updated in the next version of vim. In the meantime, you can hack your local vim files by adding the following line to your ~/.vim/syntax/perl.vim file:

syn keyword perlStatementFiledesc
    \ binmode close closedir eof fileno getc
    \ lstat print printf readdir readline readpipe rewinddir
    \ say select stat tell telldir write
    \ nextgroup=perlFiledescStatementNocomma skipwhite

Even if you haven't upgraded to Perl 5.10, you can use Jim Keenan's Perl6::Say module to add the say function.

dotfiles.org is a site that collects dotfiles for various shells and editors. If you've ever read someone else's .bashrc and said "Oh, THAT'S a cool trick", this is the site for you. If you haven't, now's the time to start. If you don't know what a dotfile is, or haven't modified the dotfile for your editor and shell, now is definitely the time to start.

Popular dotfiles include:

  • .vimrc
  • .screenrc
  • .zshrc
  • .bashrc
  • .irbrc
  • .Xdefaults
  • .conkyrc
  • .bash_profile
  • .xinitrc
  • .emacs

I've only put my .vimrc up on my personal wiki, but I can see I'll need to put it up here as well.

About this Archive

This page is a archive of entries in the Tools category from December 2007.

Tools: January 2008 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Other Perl Sites

Other Swell Blogs

  • geek2geek: An ongoing analysis of how geeks communicate, how we fail and how to fix it.