Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Janus breaks \e in psql #689

Open
davetapley opened this issue Feb 24, 2017 · 1 comment
Open

Janus breaks \e in psql #689

davetapley opened this issue Feb 24, 2017 · 1 comment

Comments

@davetapley
Copy link

Something in Janus is causing this issue:

I'm trying to edit a query using \e in postgres, but upon savequitting :wq nothing happens. Running \p, which shows what the editor saved, just comes up with a blank line, or whatever I ran most recently in the cli. It seems likethe editor is not persisting whatsoever.

I've confirmed that if I remove the .vimrc installed by Janus, then the issue goes away.


Things get even weirder when I tried to dig deeper:

If I do \e then append to the file outside of vim, the issue still occurs.
This is probably best demonstrated by example, see here.

@davetapley
Copy link
Author

I've suggested a workaround on the Stack Overflow question:

In the interim add the following to your ~/.profile as a workaround:

export PSQL_EDITOR="vim -u NONE"

See:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant