When creating a new file with vim, I would like to automatically add some skeleton code.
For example, when creating a new xml file, I would like to add the first lin
It can work with snipmate too:
augroup documentation
au!
au BufNewFile *.py :call ExecuteSnippet('docs')
augroup END
function! ExecuteSnippet(name)
execute "normal! i" . a:name . "\=TriggerSnippet()\"
endfunction
with "docs" the snippet to trigger.
It works with multi-snippets but then the :messages window appears and it's cumbersome.