Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

    set backupdir=~/.vim/backup//
    set directory=~/.vim/swp//
The double tailing slash will store files using full paths so if you edit two different models.py files you won't clobber your swap or backups.


Oh man, this is awesome. Too bad it's vim-specific and not a shell built-in, which would be handy.




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

Search: