When in mysql command prompt, the edit command which uses $EDITOR variable will result in a VIM environment without any color scheme.
Each time I create a new query, I must type ':set syntax=mysql'. This is because the temporary file name mysql create has no .sql extension. Here is an example of the name mysql can choose : /tmp/sql97H2iA.
How can I get vim to set mysql syntax without my intervention?
mysql Ver 14.14 Distrib 5.6.27, for debian-linux-gnu (x86_64) using EditLine wrapper VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 9 2014 17:36:18) Included patches: 1-488 Ubuntu 15.04