recentpopularlog in

kme : swapfile   3

FAQ - btrfs Wiki
From kernel 5.0+ btrfs have native swap files support, but with some limitations. Swap file - must be fully allocated as NOCOW with no compression on one device.
linux  sysadmin  swap  swapfile  btrfs  solution 
november 2019 by kme
editor - Disabling swap files creation in vim - Stack Overflow
Set the following variables in .vimrc or /etc/vimrc to make vim put swap, backup and undo files in a special location instead of the working directory of the file being edited:

<code class="language-viml">set backupdir=~/.vim/backup//
set directory=~/.vim/swap//
set undodir=~/.vim/undo//</code>

Using double trailing slashes in the path tells vim to enable a feature where it avoids name collisions. For example, if you edit a file in one location and another file in another location and both files have the same name, you don't want a name collision to occur in ~/.vim/swap/. If you specify ~/.vim/swap// with two trailing slashes vim will create swap files using the whole path of the files being edited to avoid collisions (slashes in the file's path will be replaced by percent symbol %).

For example, if you edit /path/one/foobar.txt and /path/two/foobar.txt, then you will see two swap files in ~/.vim/swap/ that are named %path%one%foobar.txt and %path%two%foobar.txt, respectively.
vim  swapfile  backupfile  settings  configfile  dammitbrain 
october 2019 by kme
Weevil Genius » Vim Tip – Relocating vim swapfiles
set directory^=$HOME/.vim_swap// "put all swap files together in one place
vim  dropbox  sshfs  ssh  remoteadministration  solution  textediting  programming  swapfile  annoyance 
october 2011 by kme

Copy this bookmark:





to read