add doc that 2 ways to enable zencoding.vim for other languages you using.

This commit is contained in:
mattn
2010-03-12 09:48:20 +09:00
parent 9a4412e816
commit c047dba32b

View File

@@ -176,3 +176,29 @@ Tutorial of zencoding.vim
</blockquote>
---------------------
14. Enable zencoding.vim for language you using.
There are two ways to enable zencoding.vim for language you using.
1. Enable with filetype.
---------------------
# mkdir $HOME/.vim/ftplugin/php
# cp zencoding.vim $HOME/.vim/ftplugin/php/.
---------------------
2. Enable with zen_settings.
---------------------
# cp zencoding.vim $HOME/.vim/.
# cat >> ~/.vimrc
let g:user_zen_settings = {
\ 'php' : {
\ 'extends' : 'html',
\ },
\ 'xml' : {
\ 'extends' : 'html',
\ },
\ 'haml' : {
\ 'extends' : 'html',
\ },
\}
---------------------