LoginSignup
9
9

More than 5 years have passed since last update.

psql上でSQLをVimにより編集

Last updated at Posted at 2013-12-10
export PSQL_EDITOR='vim +"set syntax=sql" '

と環境変数を設定しておけば
\eにてSQLをVimで(シンタックスハイライト付きで)編集出来るようになる。

参考

Quick and dirty Postgres query - Vim Tips Wiki

9
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9