Skip to content

Instantly share code, notes, and snippets.

@DineshReddyK
Last active August 29, 2015 14:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save DineshReddyK/9c0fbc6d6fcd24dea585 to your computer and use it in GitHub Desktop.
Vim template
"vim to load default templates on opening cpp/c/sh files
augroup templates
autocmd!
"Auto load wile creating new files
autocmd BufNewFile *.cpp 0r ~/.vim/templates/skeleton.cpp
autocmd BufNewFile *.c 0r ~/.vim/templates/skeleton.c
autocmd BufNewFile *.sh 0r ~/.vim/templates/skeleton.sh
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment