vim and tpl
| From: | Kevin Coyner | Date: | Fri, 12 Dec 2003 19:47:14 +0000 |
| Subject: | vim and tpl | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10681@lists.php.net to get a copy of this message | ||
I use vim and am trying to get it to pick up abbreviations (as
specificed by .vimhtmlrc) for any file *.tpl.
I've got it working for other types of extensions (i.e. php) but am
stuck on .tpl.
Has anyone got this working, and if so, could you post the appropriate
lines from your .vimrc?
Here are the pertinent excerpts from my .vimrc:
--------------------------
if has("autocmd")
autocmd!
filetype plugin indent on
autocmd FileType text setlocal textwidth=78
autocmd FileType html,htm,php,asp,tpl setlocal textwidth=250
au BufRead,BufNewFile *.tpl setfiletype html
autocmd FileType html,htm,php,asp,tpl source ~/.vimhtmlrc
endif
--------------------------
I'm asking on this list because I figure there's more Smarty list users
that use vi(m) than there are vim list users that use Smarty.
Thanks for any help in advance.
Kevin