PATH:
usr
/
share
/
vim
/
vim74
/
ftplugin
" Vim filetype plugin file " Language: php " Maintainer: Dan Sharp <dwsharp at users dot sourceforge dot net> " Last Changed: 20 Jan 2009 " URL: http://dwsharp.users.sourceforge.net/vim/ftplugin if exists("b:did_ftplugin") | finish | endif " Make sure the continuation lines below do not cause problems in " compatibility mode. let s:keepcpo= &cpo set cpo&vim " Define some defaults in case the included ftplugins don't set them. let s:undo_ftplugin = "" let s:browsefilter = "HTML Files (*.html, *.htm)\t*.html;*.htm\n" . \ "All Files (*.*)\t*.*\n" let s:match_words = "" runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim let b:did_ftplugin = 1 " Override our defaults if these were set by an included ftplugin. if exists("b:undo_ftplugin") let s:undo_ftplugin = b:undo_ftplugin endif if exists("b:browsefilter") let s:browsefilter = b:browsefilter endif if exists("b:match_words") let s:match_words = b:match_words endif if exists("b:match_skip") unlet b:match_skip endif " Change the :browse e filter to primarily show PHP-related files. if has("gui_win32") let b:browsefilter="PHP Files (*.php)\t*.php\n" . s:browsefilter endif " ### " Provided by Mikolaj Machowski <mikmach at wp dot pl> setlocal include=\\\(require\\\|include\\\)\\\(_once\\\)\\\? " Disabled changing 'iskeyword', it breaks a command such as "*" " setlocal iskeyword+=$ if exists("loaded_matchit") let b:match_words = '<?php:?>,\<switch\>:\<endswitch\>,' . \ '\<if\>:\<elseif\>:\<else\>:\<endif\>,' . \ '\<while\>:\<endwhile\>,' . \ '\<do\>:\<while\>,' . \ '\<for\>:\<endfor\>,' . \ '\<foreach\>:\<endforeach\>,' . \ '(:),[:],{:},' . \ s:match_words endif " ### if exists('&omnifunc') setlocal omnifunc=phpcomplete#CompletePHP endif " Section jumping: [[ and ]] provided by Antony Scriven <adscriven at gmail dot com> let s:function = '\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function' let s:class = '\(abstract\s\+\|final\s\+\)*class' let s:interface = 'interface' let s:section = '\(.*\%#\)\@!\_^\s*\zs\('.s:function.'\|'.s:class.'\|'.s:interface.'\)' exe 'nno <buffer> <silent> [[ ?' . escape(s:section, '|') . '?<CR>:nohls<CR>' exe 'nno <buffer> <silent> ]] /' . escape(s:section, '|') . '/<CR>:nohls<CR>' exe 'ono <buffer> <silent> [[ ?' . escape(s:section, '|') . '?<CR>:nohls<CR>' exe 'ono <buffer> <silent> ]] /' . escape(s:section, '|') . '/<CR>:nohls<CR>' setlocal commentstring=/*%s*/ " Undo the stuff we changed. let b:undo_ftplugin = "setlocal commentstring< include< omnifunc<" . \ " | unlet! b:browsefilter b:match_words | " . \ s:undo_ftplugin " Restore the saved compatibility options. let &cpo = s:keepcpo unlet s:keepcpo
[-] rpl.vim
[edit]
[-] denyhosts.vim
[edit]
[-] zimbu.vim
[edit]
[-] nanorc.vim
[edit]
[-] c.vim
[edit]
[-] tt2html.vim
[edit]
[-] group.vim
[edit]
[-] muttrc.vim
[edit]
[-] make.vim
[edit]
[-] aspvbs.vim
[edit]
[-] rnc.vim
[edit]
[-] protocols.vim
[edit]
[-] logtalk.vim
[edit]
[-] postscr.vim
[edit]
[-] gitrebase.vim
[edit]
[-] eruby.vim
[edit]
[-] udevrules.vim
[edit]
[-] xs.vim
[edit]
[-] ada.vim
[edit]
[-] sql.vim
[edit]
[-] liquid.vim
[edit]
[-] mplayerconf.vim
[edit]
[-] abap.vim
[edit]
[-] mrxvtrc.vim
[edit]
[-] xsd.vim
[edit]
[-] quake.vim
[edit]
[-] tex.vim
[edit]
[-] xdefaults.vim
[edit]
[-] aap.vim
[edit]
[-] matlab.vim
[edit]
[-] kconfig.vim
[edit]
[-] bdf.vim
[edit]
[-] ishd.vim
[edit]
[-] calendar.vim
[edit]
[-] gpg.vim
[edit]
[-] gitcommit.vim
[edit]
[-] cvsrc.vim
[edit]
[-] libao.vim
[edit]
[+]
..
[-] qf.vim
[edit]
[-] cs.vim
[edit]
[-] dtd.vim
[edit]
[-] python.vim
[edit]
[-] svg.vim
[edit]
[-] changelog.vim
[edit]
[-] sshconfig.vim
[edit]
[-] man.vim
[edit]
[-] screen.vim
[edit]
[-] xmodmap.vim
[edit]
[-] treetop.vim
[edit]
[-] tcsh.vim
[edit]
[-] setserial.vim
[edit]
[-] elinks.vim
[edit]
[-] xhtml.vim
[edit]
[-] dircolors.vim
[edit]
[-] manconf.vim
[edit]
[-] passwd.vim
[edit]
[-] gitsendemail.vim
[edit]
[-] perl6.vim
[edit]
[-] dosini.vim
[edit]
[-] cucumber.vim
[edit]
[-] hamster.vim
[edit]
[-] verilog.vim
[edit]
[-] java.vim
[edit]
[-] reva.vim
[edit]
[-] README.txt
[edit]
[-] crm.vim
[edit]
[-] loginaccess.vim
[edit]
[-] updatedb.vim
[edit]
[-] gitconfig.vim
[edit]
[-] scss.vim
[edit]
[-] pamconf.vim
[edit]
[-] slpconf.vim
[edit]
[-] tcl.vim
[edit]
[-] plaintex.vim
[edit]
[-] flexwiki.vim
[edit]
[-] art.vim
[edit]
[-] nsis.vim
[edit]
[-] yaml.vim
[edit]
[-] zsh.vim
[edit]
[-] pascal.vim
[edit]
[-] objc.vim
[edit]
[-] pyrex.vim
[edit]
[-] lprolog.vim
[edit]
[-] services.vim
[edit]
[-] occam.vim
[edit]
[-] initex.vim
[edit]
[-] automake.vim
[edit]
[-] xml.vim
[edit]
[-] fortran.vim
[edit]
[-] sysctl.vim
[edit]
[-] xslt.vim
[edit]
[-] help.vim
[edit]
[-] netrc.vim
[edit]
[-] grub.vim
[edit]
[-] csc.vim
[edit]
[-] ch.vim
[edit]
[-] msmessages.vim
[edit]
[-] m4.vim
[edit]
[-] diff.vim
[edit]
[-] htmldjango.vim
[edit]
[-] mailcap.vim
[edit]
[-] csh.vim
[edit]
[-] ant.vim
[edit]
[-] erlang.vim
[edit]
[-] debcontrol.vim
[edit]
[-] racc.vim
[edit]
[-] abaqus.vim
[edit]
[-] slpspi.vim
[edit]
[-] logcheck.vim
[edit]
[-] vim.vim
[edit]
[-] udevconf.vim
[edit]
[-] vb.vim
[edit]
[-] alsaconf.vim
[edit]
[-] mp.vim
[edit]
[-] git.vim
[edit]
[-] vhdl.vim
[edit]
[-] lftp.vim
[edit]
[-] ocaml.vim
[edit]
[-] cdrdaoconf.vim
[edit]
[-] css.vim
[edit]
[-] dosbatch.vim
[edit]
[-] lua.vim
[edit]
[-] sieve.vim
[edit]
[-] debchangelog.vim
[edit]
[-] perl.vim
[edit]
[-] sensors.vim
[edit]
[-] eterm.vim
[edit]
[-] haml.vim
[edit]
[-] falcon.vim
[edit]
[-] dictconf.vim
[edit]
[-] scheme.vim
[edit]
[-] dictdconf.vim
[edit]
[-] docbk.vim
[edit]
[-] xinetd.vim
[edit]
[-] kwt.vim
[edit]
[-] framescript.vim
[edit]
[-] rst.vim
[edit]
[-] dtrace.vim
[edit]
[-] ruby.vim
[edit]
[-] conf.vim
[edit]
[-] fvwm.vim
[edit]
[-] btm.vim
[edit]
[-] javascript.vim
[edit]
[-] fetchmail.vim
[edit]
[-] ld.vim
[edit]
[-] markdown.vim
[edit]
[-] mailaliases.vim
[edit]
[-] php.vim
[edit]
[-] xf86conf.vim
[edit]
[-] context.vim
[edit]
[-] sass.vim
[edit]
[-] a2ps.vim
[edit]
[-] gprof.vim
[edit]
[-] prolog.vim
[edit]
[-] haskell.vim
[edit]
[-] indent.vim
[edit]
[-] hostconf.vim
[edit]
[-] modconf.vim
[edit]
[-] udevperm.vim
[edit]
[-] html.vim
[edit]
[-] bst.vim
[edit]
[-] config.vim
[edit]
[-] lisp.vim
[edit]
[-] hostsaccess.vim
[edit]
[-] mail.vim
[edit]
[-] cpp.vim
[edit]
[-] limits.vim
[edit]
[-] cobol.vim
[edit]
[-] spec.vim
[edit]
[-] mf.vim
[edit]
[-] pdf.vim
[edit]
[-] terminfo.vim
[edit]
[-] logindefs.vim
[edit]
[-] clojure.vim
[edit]
[-] jsp.vim
[edit]
[-] sudoers.vim
[edit]
[-] slpreg.vim
[edit]
[-] sh.vim
[edit]
[-] sgml.vim
[edit]
[-] arch.vim
[edit]
[-] procmail.vim
[edit]
[-] readline.vim
[edit]
[-] pinfo.vim
[edit]
[-] logtalk.dict
[edit]