[Tipz] Vim hiliting for MySQL, and more...
Ian Langworth
bass at ccs.neu.edu
Fri May 23 11:26:59 EDT 2003
Here's a nifty alias I just added to my Zsh config:
[ "x$EDITOR" = "xvim" ] && \
alias mysql="EDITOR=\"vim -c ':set ft=sql'\" mysql"
Now I can oogle at my angry fruit salad (i.e., syntax hiliting)
when I use the \e command in the mysql client. This can, of
course, be extensible to any other client that calls out to an
editor.
--
Ian Langworth
CCIS Project Guerrilla
Northeastern University
College of Computer and Information Science
More information about the Tipz
mailing list