All Projects → spf13 → Piv

spf13 / Piv

PHP Integration environment for Vim

Labels

Projects that are alternatives of or similar to Piv

Vim Auto Save
Automatically save changes to disk
Stars: ✭ 213 (-16.47%)
Mutual labels:  viml
Config files
My config files (aka dotfiles)
Stars: ✭ 222 (-12.94%)
Mutual labels:  viml
Drawit
Ascii drawing plugin: lines, ellipses, arrows, fills, and more!
Stars: ✭ 243 (-4.71%)
Mutual labels:  viml
Csapprox
Make gvim-only colorschemes work transparently in terminal vim
Stars: ✭ 215 (-15.69%)
Mutual labels:  viml
Sachet
Handcraft your development environment
Stars: ✭ 221 (-13.33%)
Mutual labels:  viml
Vim Gocode
A Go bundle for Vundle or Pathogen
Stars: ✭ 232 (-9.02%)
Mutual labels:  viml
Cocoa.vim
Vim plugin for Cocoa/Objective-C development. No longer actively developed.
Stars: ✭ 205 (-19.61%)
Mutual labels:  viml
Fuzzyfinder
buffer/file/command/tag/etc explorer with fuzzy matching
Stars: ✭ 252 (-1.18%)
Mutual labels:  viml
Vim Maximizer
Maximizes and restores the current window in Vim.
Stars: ✭ 220 (-13.73%)
Mutual labels:  viml
Conque Shell
Run interactive commands inside a Vim buffer
Stars: ✭ 241 (-5.49%)
Mutual labels:  viml
Fuzzyfinder textmate
A vim script that extends the fuzzyfinder plugin to support TextMate style file searches (e.g. cmd-T) (Unmaintained now, see http://weblog.jamisbuck.org/2009/1/28/the-future-of-fuzzyfinder-textmate)
Stars: ✭ 216 (-15.29%)
Mutual labels:  viml
Autocomplpop
Automatically opens popup menu for completions
Stars: ✭ 219 (-14.12%)
Mutual labels:  viml
Flappyvird Vim
Stars: ✭ 236 (-7.45%)
Mutual labels:  viml
Goldenview.vim
Always have a nice view for vim split windows!
Stars: ✭ 214 (-16.08%)
Mutual labels:  viml
Vim Online Thesaurus
A Vim plugin for looking up words in an online thesaurus
Stars: ✭ 242 (-5.1%)
Mutual labels:  viml
Vim Kalisi
The colorscheme with neovim in mind
Stars: ✭ 207 (-18.82%)
Mutual labels:  viml
Vim Yoink
Vim plugin that maintains a yank history to cycle between when pasting
Stars: ✭ 225 (-11.76%)
Mutual labels:  viml
Spf13 Vim
The ultimate vim distribution
Stars: ✭ 15,235 (+5874.51%)
Mutual labels:  viml
Color Schemes
Color schemes I've used for an extended period of time and like
Stars: ✭ 244 (-4.31%)
Mutual labels:  viml
Dotfiles
My dotfiles
Stars: ✭ 238 (-6.67%)
Mutual labels:  viml

PHP Integration for VIM

Description

This project contains the most feature complete and up to date PHP Integration for Vim. It began as a fork of the largely outdated VIP (formerly PDV), but has morphed into it's own project.

It is intended to include the best PHP specific plugins, configurations and resources for editing PHP. Special care has been taken to include the best, keep them up to date and make sure everything plays well together.

It doesn't attempt to include the best programming plugins, so you can use the plugins you prefer.

The bottom of this readme includes a list of many great plugins that work well with PIV. If you are looking for an excellent VIM configuration, please checkout The Ultimate VIM Configuration.

Features

Updated Syntax

Updated for PHP 5.3

The list of PHP constants, functions, and classes was updated to be current with PHP 5.3. Many new classes were added in the 5.2 and 5.3 branches and the distributed version only covers up to 5.1.4.

Better Fold Support

This plugin can fold PHP functions and/or classes, properties with their PhpDoc, without manually adding marker style folds ({{{ and }}}) http://www.vim.org/scripts/script.php?script_id=1623

Can be turned off by setting let g:DisableAutoPHPFolding = 1 in your .vimrc file.

PHP Doc Gen

Generate phpDocumentor conforming documentation blocks for your PHP code.

To use place cursor on line with class, function or variable definition and type ,pd (in n mode)

Better Completion

PHP completion script for use with omniComplete. Using Shawn Biddle's excellent phpcomplete.vim script

Completion from current file, included files, tags and php builtin: * classes (after new), * functions
* variables * constants * language keywords

Either use or install SuperTab to use. By default will show a preview of the function call.

Completion is done via context, for example after -> and :: options limited to funcs and vars.

Examples

Example class which has a TAGS file generated for it somewhere class SomeClass { private function _private_method() {} // never shows up in completion list public static function staticMethod() {} // only shows up when using completion on SomeClass:: public function completeMe() {} // only shows up when using completion on $instance_of_someclass-> }

Non-static completion

$instance = new SomeClass; 
... 
$instance-><C-X><C-O> to display the omnicompletion menu (see :help ins-completion) 
$instance->completeMe(); // will autoselect completeMe since it's the only public non-static method 

Static completion

SomeClass::<C-X><C-O> to display omnicompletion menu 
SomeClass::staticMethod(); // once again will autoselect staticMethod since it's the only public static method 

Singleton completion

$instance = SomeClass::getInstance(); 
$instance-><C-X><C-O> complete just like non-static 

Other features

  • Correct restriction of static or standard methods based on context ( show only static methods with :: and only standard with ->)
  • Real support for self:: and $this-> with the aforementioned context restriction
  • Constant variable completion (not just define(VARIABLE, 1) but const VARIABLE = 1)

Better indenting w/automatic formatting

Custom php indenting file for VIM

Full (and current [5.3]) PHP Manual

Simply hit K (shift+k) on any function to see full documentation file for that function even offline.

Recommendations

It isn't my intention to provide php specific functionality when a good general purpose solution exists.

The following plugins are recommended and can be found in my Ultimate VIM Configuration.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].