Skip to content

Instantly share code, notes, and snippets.

@kana
Created April 10, 2010 06:47
Show Gist options
  • Save kana/361879 to your computer and use it in GitHub Desktop.
Save kana/361879 to your computer and use it in GitHub Desktop.
let g:new_dir = $HOME . '/tmp'
augroup New
autocmd!
autocmd BufNewFile * execute 'silent file' (g:new_dir . '/' . expand('%'))
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment