Skip to content

Instantly share code, notes, and snippets.

@zph
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save zph/11482413 to your computer and use it in GitHub Desktop.

Select an option

Save zph/11482413 to your computer and use it in GitHub Desktop.
" This folder is automatically created in zph's .zshrc
set backupdir=~/tmp/vim
set directory=~/tmp/vim " Don't clutter my dirs up with swp and tmp files
" EXPERIMENTAL
" Set persistent undo for vim using tempdir
set undodir=~/tmp/vim
set undofile
@zph

zph commented May 2, 2014

Copy link
Copy Markdown
Author

To Use:

mkdir -p ~/tmp/vim

Then place this in .vimrc to have it no longer leave swp files all over filesystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment