Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.
You see, the great thing about posting vim stuff here is that people (Smylers, Aristotle, etc.) immediately post corrections. I appreciate that
Problem: when in the MySQL client, you can type 'edit' and edit your last SQL statement (can I go back further? I thought so, but I can't recall how). However, I want my syntax highlighting, but the filetype isn't set. After a bit of testing, I found out that the filename is always
" this is for MySQL's 'edit' command while in the client
au! BufRead,BufNewFile/var/tmp/sql* :call SetMySQL()
function! SetMySQL()
set ft=sql
SQLSetType mysql
endfunction
Having problems with this? (Score:1)
Re: (Score:2)
Yes, I should have pointed that out. Thanks.
Very nice (Score:1)
I hate to be so predictable ;-) (Score:1)
When you set
filetypein an autocommand, it’s better to use thesetfcommand instead ofset ft=. And why not make it a one-liner?Re: (Score:2)
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] :)