Permalink
Browse files

changed something

  • Loading branch information...
1 parent 56e1174 commit a62d0501006ad516712019b102094643c1482752 @hanzhixing committed Jul 30, 2012
Showing with 51 additions and 2 deletions.
  1. +3 −0 ftplugin/html.vim
  2. +46 −0 syntax/phtml.vim
  3. +2 −2 vimrc
View
@@ -0,0 +1,3 @@
+setlocal tabstop=2
+setlocal softtabstop=2
+setlocal shiftwidth=2
View
@@ -0,0 +1,46 @@
+" Vim syntax file
+" Language: PHP Templates (Solarphp, PHPSavant etc...)
+" Maintainer: Giuliani Sanches (giulianit at gmail dot com)
+" URL: http://giulianisanches.blogspot.com
+" Last Change: 2007 Novembro 20
+" Version: 0.1.2
+"
+" ###################################################################################################
+" Based on Armin Ronacher mako.vim syntax file (http://www.vim.org/scripts/script.php?script_id=1858)
+" ###################################################################################################
+"
+" For version 5.x: Clear all syntax items
+" For version 6.x: Quit when a syntax file was already loaded
+if version < 600
+ syntax clear
+elseif exists("b:current_syntax")
+ finish
+endif
+
+if !exists("main_syntax")
+ let main_syntax = "html"
+endif
+
+"Source the html syntax file
+ru! syntax/html.vim
+unlet b:current_syntax
+
+"Put the php syntax file in @phpTop
+syn include @phpTop syntax/php.vim
+
+" Block rules
+syn region phpBlock start=#<?php# end=#?># keepend contains=@phpTop
+
+" Default highlighting links
+if version >= 508 || !exists("did_php_syn_inits")
+ if version < 508
+ let did_php_syn_inits = 1
+ com -nargs=+ HiLink hi link <args>
+ else
+ com -nargs=+ HiLink hi def link <args>
+ endif
+
+ delc HiLink
+endif
+
+let b:current_syntax = "html"
View
@@ -186,7 +186,7 @@ set expandtab
" the width of '>' operator indenting
set shiftwidth=4
-"set tabstop=4
+set tabstop=4
" 4 spaces for one pressing, '<tab>' character for twice pressing
set softtabstop=4
@@ -268,4 +268,4 @@ imap <F10> <esc>:NERDTreeToggle<cr>
-"EOF
+"EOF

0 comments on commit a62d050

Please sign in to comment.