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.
  • For this to work it might also be necessary in certain cases for the following to appear in your .vimrc: filetype plugin on
  • Thanks! If anybody use PostgreSQL like I do, use "SQLSetType psql" instead
  • When you set filetype in an autocommand, it’s better to use the setf command instead of set ft=. And why not make it a one-liner?

    au! BufRead,BufNewFile /var/tmp/sql* setf sql | SQLSetType mysql
    • I guess setf is better in this case (didn't know about it until you suggested it), but I had tried to make this a one-liner, but I was using &&. I didn't think to try the bar. Thanks.

      Now to try and integrate SQL::Tidy [perlmonks.org] :)