From c047dba32bf8a5dd21dca134c2f6e39ff86cbee0 Mon Sep 17 00:00:00 2001 From: mattn Date: Fri, 12 Mar 2010 09:48:20 +0900 Subject: [PATCH] add doc that 2 ways to enable zencoding.vim for other languages you using. --- TUTORIAL | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/TUTORIAL b/TUTORIAL index e9e12b5..fd534e7 100644 --- a/TUTORIAL +++ b/TUTORIAL @@ -176,3 +176,29 @@ Tutorial of zencoding.vim --------------------- +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', + \ }, + \} + ---------------------