set directory=~/.vim/swp//
If you end your settings with double trailing // then vim will automatically use the full path to the file
so editing
/etc/X11/x.org and ~/x.org won't clobber each other in your swap directory.
set directory=~/.vim/swp//
If you end your settings with double trailing // then vim will automatically use the full path to the file
so editing
/etc/X11/x.org and ~/x.org won't clobber each other in your swap directory.