Hacker News new | past | comments | ask | show | jobs | submit login

set backupdir=~/.vim/backup//

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: