I'm aware from threads like this one that one can have Vim insert some template code/preamble when a new file is opened, for example
autocmd BufNewFile *.tex 0r ~/skeleton.tex
but what if I want to choose from multiple templates? Is there a way I can use the input()
command to select the filename?