Something went wrong. Try again.
My precious vimfiles
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243let php_htmlInStrings = 1let php_baselib = 1let php_folding = 0 " Custom plugin for thatlet php_noShortTags = 1let php_parent_error_close = 1let php_sync_method = 0
let b:surround_{char2nr('-')} = "<?php \r ?>"let b:surround_{char2nr('=')} = "<?php echo \r ?>"" surround area with <foo> (...) { }let b:surround_{char2nr('i')} = "if (\1if: \1) {\r}"let b:surround_{char2nr('w')} = "while (\1while: \1) {\r}"let b:surround_{char2nr('f')} = "for (\1for: \1) {\r}"let b:surround_{char2nr('e')} = "foreach (\1foreach: \1) {\r}"" surround area with <?php <foo> (...): ?> <?php endfoo ?>let b:surround_{char2nr('I')} = "<?php if (\1if: \1): ?>\r<?php endif ?>"let b:surround_{char2nr('W')} = "<?php while (\1while: \1): ?>\r<?php endwhile ?>"let b:surround_{char2nr('F')} = "<?php for (\1for: \1): ?>\r<?php endfor ?>"let b:surround_{char2nr('E')} = "<?php foreach (\1foreach: \1): ?>\r<?php endforeach ?>"
" Look up the word under the cursor on php.net:nmap <buffer> gm :call OpenURL('http://php.net/manual-lookup.php?pattern=' . expand("<cword>"))<cr>
command! -buffer Outline call lib#Outline('\<function\>')
if &includeexpr == '' " only if not already set setlocal includeexpr=PhpIncludeExpr(v:fname)endiffunction! PhpIncludeExpr(fname) let line = getline('.')
" Attempt to detect relative include: let fname = lib#ExtractRx(line, '\(require\|include\)\(_once\)\?(\?\s*dirname(__FILE__)\s*\.\s*[''"]\(.\{-}\)[''"]', '\3') if fname != line " Then there really is a relative include return expand('%:p:.:h').fname endif
" Catchall case: return a:fnameendfunction
RunCommand !php % <args>