Files
dotfiles/vim/.vim/plugin/skeletons.vim
TuDatTr c0d11e4b79 Added clipboard functionality to config/.script/screenshot.sh
Fixed window screenshot in config/.config/i3/config
Made terminal transparent again
2020-05-22 01:39:09 +02:00

9 lines
304 B
VimL

augroup templates
au!
" read in template files
autocmd BufNewFile *.* silent! execute '0r $HOME/.vim/templates/skeleton.'.expand("<afile>:e")
" parse special text in the templates after the read
autocmd BufNewFile * %s#\[:VIM_EVAL:\]\(.\{-\}\)\[:END_EVAL:\]#\=eval(submatch(1))#ge
augroup END