Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to customize templates in vim-latex

I'm trying to use vim-latex, and as the existing templates are annoyingly simple and unsatisfactory, I'm trying to build some of my own. However, after composing my own templates and stored in "/ftplugin/latex-suite/templates", nothing happens. The software simply won't scan for new templates. Did I miss some steps to make it work?

like image 984
Chong Avatar asked Nov 03 '22 12:11

Chong


1 Answers

I found out what's happening. If there's any one who ran into a similar problem, please check whether you have installed that plugin in your OS repo. I'm using fedora, and accidentally installed vim-latex from the repo, thus the place those templates are really located is

"/usr/share/vim/vimfiles/ftplugin/latex-suite/templates".

So either remove the add-on installed from the OS repo and reinstall it in "~/.vim/", or copy the templates to that folder is the solution to this problem.

like image 56
Chong Avatar answered Nov 14 '22 06:11

Chong