Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
P4EDITOR is set to gvim in .p4enviro.
When run command p4 client in terminal, it will pop an empty tmp file.
But if change editor config to P4EDITOR=vim, it works fine.
How to fix this?
As @ChristianBrabant says: Use gvim -f as P4EDITOR environment variable to fix this issue.
Adding the below line to .bashrc
export P4EDITOR="gvim -f"
Required, but never shown