Closed konradzdeb closed 6 years ago
@konradedgar: You have to name your template file:
~/.vim/vim-templates/=template=<pattern>
Remember that you can use wildcards in <pattern>
, so a template with the following name will match any file which contains notes
somewhere followed by a .tex
suffix:
~/.vim/vim-templates/=template=*notes*.tex
(You may need to escape the =
and *
symbols in the shell in order to create the template.)
Thanks for getting back to me.
@konradedgar: You're welcome! I'm glad that the plugin is working for you :smile:
Hi, I just came across this plugin and I would like to ensure that I'm using it correctly. I would like to create a
*.tex
template with some widgets that I like to have handy when drafting quick notes. I've created a directory to keep my templates in~/.vim/vim-templates/
. My notes will always have notes in the file name, for instance11Dec17_indicators_art_notes.tex
ornotes_3May16_feedback_proj.tex
. How should I name my custom template so it's loaded automatically when creating a Tex documents with notes in the file name?I've added the following to my
~/.vimrc