I work with many terminals, and very often hit the case where:
- a vim instance holds
~/sm/file - I open another instance on the same file.
My choice is always :(E)dit without prompting ...
So I'd like vi to "remember my choice" for every file.
Many posts explain how to ignore swap files. * That is not what I want :) *
The typical, well known message is:
E325: ATTENTION
Found a swap file by the name "~/sm/.file.swp"
owned by: FRY02339 dated: Tue Oct 29 10:41:13 2019
file name: ~FRY02339/sm/file
modified: no
user name: FRY02339 host name: shinwey
process ID: 60165 (still running)
While opening file "/home/FRY02339/sm/file"
dated: Tue Oct 29 10:41:09 2019
(1) Another program may be editing the same file. If this is the case,
be careful not to end up with two different instances of the same
file when making changes. Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /home/FRY02339/sm/file"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/home/FRY02339/sm/.file.swp"
to avoid this message.
Swap file "~/sm/.file.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort:
Do you have any hint ?