Skip to content

Instantly share code, notes, and snippets.

@aerosol
Created January 23, 2012 19:36
Show Gist options
  • Select an option

  • Save aerosol/1665122 to your computer and use it in GitHub Desktop.

Select an option

Save aerosol/1665122 to your computer and use it in GitHub Desktop.
" Undo & history {{{
set history=1000
set undolevels=1000
" make sure tmp dir is created
silent execute '!mkdir ~/.vim/tmp > /dev/null 2>&1'
" delete junk older than 3 days
silent execute '!find ~/.vim/tmp/ -type f -mtime +3 -exec rm {} \;'
set undofile
set undodir=~/.vim/tmp
set backup
set backupdir=~/.vim/tmp
set noswapfile
" }}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment