10
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

psql上でSQLをVimにより編集

10
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

10
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
10
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?