Vim swapfile location #18
Labels
No labels
bug
documentation
duplicate
enhancement
help wanted
invalid
maintenance
obsolete
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
yestax/setup#18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Vim swapfile can be useful but is annoying when in the same directory (git detection for instance)
:help swapfile give information on how to change the directory
:help directory
set-= is preferred
see :h directory
set-= is preferred but here we override the entire list so i think classic set is preferred.
use // at the end to use the file fullname so if 2 files of the same name are edited there is no conflict
To create the directories
call mkdir($HOME.'/.vim/swap', 'p', 0700)
call mkdir($HOME.'/.vim/backup', 'p', 0700)
call mkdir($HOME.'/.vim/undo', 'p', 0700)
Also possible to set
writebackup option seems on. It backups only just before write.
Implemented