mattn / vim-sonictemplate

Easy and high speed coding method
http://mattn.github.com/vim-sonictemplate
333 stars 42 forks source link

custom template dir #4

Closed baopham closed 12 years ago

baopham commented 12 years ago

I put this in my .vimrc

let g:template_vim_template_dir = '$HOME/.vim/template'

and my template dir looks like this:

template
  |
  python
      |
     snip-doc.py

But it doesn't seem to load.

mattn commented 12 years ago

Thanks.

baopham commented 12 years ago

So it's actually g:sonictemplate_vim_template_dir ? I think you need to fix the doc, because it says g:template_vim_template_dir

So I pulled in the latest commit, it works for my own template snip-doc.py, but other templates don't exist anymore.

mattn commented 12 years ago

Improved template directory. It's merge several templates. Thanks for your advice.

mattn commented 12 years ago

If you have awesome templates, please send me pull request. :)

baopham commented 12 years ago

works great now! But i think you forgot to fix the doc because it still says g:template_vim_template_dir instead of g:sonictemplate_vim_template_dir :D

If I do have awesome templates, for sure I'll send in a pull request :)