I'm using a file template directory for newly created files,
autocmd! BufNewFile * silent! 0r ~/.vim/skel/tmpl.%:e
Now I want to add another function, that move the cursor to somewhere (defined in each ~/.vim/skel/tmpl.%), i.e the first location of text <CURSOR>
, is that possible?
In summary, when a new file is created, use the template, and jump to <CURSOR>
.