Reputation: 17581
Can I map two file types to one snippet file?
For example, I would like both .html
and .ctp
files to use the hmtl.snippets
file.
If not, would a sym link from the operating system do the trick?
Or can I create a global snippet file for all file types?
Thanks!
Upvotes: 4
Views: 1592
Reputation: 246
What romainl said. Additionally, you could create a ctp.snippets
file and put an extends html
command in it. All of this is well documented in UltiSnips' vimhelp.
Upvotes: 10
Reputation: 196536
You can (at the very least):
html.snippets
and rename it to ctp.snippets
_.snippets
autocmd BufEnter,BufNew *.ctp setf ctp.html
to your ~/.vimrc
Upvotes: 7