jian
jian

Reputation: 4867

How to make psql editor show line number

New to the VIM. Environment: WSL2 Already set VIM to show line number, It works as expected. So I type vi test.txt in Ubuntu/WSL2, it will show line number.

But In psql, when I type \e It will not show line number.

Upvotes: 1

Views: 208

Answers (1)

jian
jian

Reputation: 4867

  1. sudo su to enter root mode.

  2. sudo -u postgres -i After logging as user postgres in Ubuntu then using

  3. vim ~/.vimrc to create/edit a new vimrc file.

Upvotes: 1

Related Questions