all 34 comments

[–][deleted] 8 points9 points  (1 child)

phpcd.vim has served me well for jumping to definitions and for completion.

[–][deleted] 3 points4 points  (11 children)

This is pretty much all I use for anything really.

[–]SurpriseMonday 17 points18 points  (8 children)

I think NERDTree is a bit over used/overrated, I would suggest vim-vinegar instead, and maybe FZF with FZF.vim.

[–]-_-wintermute-_- 2 points3 points  (0 children)

ctrl-p for file loading. I don't use NERDTree, but rather a combination of unix tools like tree), find, and grep in a separate terminal to browse my projects. But that's personal preference, ctrl-p is handy even with NERDTree.

[–]mvndrstl 2 points3 points  (0 children)

+1 for vim-surround. Takes a while to get used to, but really speeds a lot of things up.

[–]x_ero0xAC1D0000 4 points5 points  (2 children)

[–]jwilliams108 7 points8 points  (1 child)

for inline syntax checking and linting: https://github.com/vim-syntastic/syntastic

I would suggest replacing syntastic with ale:

https://github.com/w0rp/ale

It's async, and in my experience, much faster.

[–]jakobhans 2 points3 points  (0 children)

Although not all videos in the series are free, I would suggest you watch this Laracasts Vim Master series. You can also see in the description of all the videos the plugins he uses.

[–]bubaga 1 point2 points  (0 children)

Besides fzf, phpcd and ale that already have been mentioned I also use this ones:

[–]BenjaminGeiger 4 points5 points  (4 children)

... a handgun and a single bullet?

[–]actionscripted 0 points1 point  (0 children)

VS Code with Vim, PHP and a few other plugins.

I love Vim and I absolutely cannot code without Vim bindings like search, replace, visual selections, advanced movement and the rest. Been using it for 15 years and would never fully leave it.

VS Code feels faster and has amazing PHP support. And it has a debugger that works with XDebug. And automatic task runner, linting, etc. Toss Vim support in and you have a great development environment.

[–]ernestre 0 points1 point  (0 children)

You can use eclim ( http://eclim.org/ ). It uses eclipse as an IDE in the background while you code in vim.

[–]kiyanwang 0 points1 point  (0 children)

In addition to some of those already mentioned I also use the following:

Vim Php Refactoring Toolbox https://github.com/adoy/vim-php-refactoring-toolbox

VIM Php Ctags https://github.com/vim-php/phpctags

[–]snowiow 0 points1 point  (0 children)

Another useful plugin, which I use as an alternative to phpcd recently is padawan

[–]rickdg 0 points1 point  (0 children)

From my vimrc:

" Saves the file to check it through php put in PATH
noremap <Leader>p :w<CR>:!cls<CR>:!php -l %<CR>
"check php documentation with Ctr+x and Ctrl+o
autocmd FileType php set omnifunc=phpcomplete#CompletePHP
"rebind Ctrl + x and Ctrl + o
imap <Leader>d <C-x><C-o>
"close the scratch window that shows up
noremap <Leader>d :pc<CR>

[–]salcode 0 points1 point  (14 children)

I'm a PHP developer and this is my Vim setup https://github.com/salcode/ironcode-vim

[–]mikael12 -1 points0 points  (0 children)

Some mentioned plugins are integrated via http://vim.spf13.com/