All Projects → vim-php → Vim Composer

vim-php / Vim Composer

Licence: mit
Composer in Vim

Labels

Projects that are alternatives of or similar to Vim Composer

...
dotfiles
Stars: ✭ 12 (-42.86%)
Mutual labels:  viml
Toby.vim
My personal VIM setup
Stars: ✭ 13 (-38.1%)
Mutual labels:  viml
Hl matchit.vim
highlighting match of matchit.vim
Stars: ✭ 14 (-33.33%)
Mutual labels:  viml
Vimmyconf
Mi configuración de vim con pathogen
Stars: ✭ 12 (-42.86%)
Mutual labels:  viml
Ctrlp.vim
Fuzzy file, buffer, mru, tag, etc finder.
Stars: ✭ 7,070 (+33566.67%)
Mutual labels:  viml
Pyscratch
Makes Vim into a "scratchpad" tool for Python, Ruby, Perl, and/or Lua
Stars: ✭ 13 (-38.1%)
Mutual labels:  viml
Vim Css To Inline
Transforms plain css into JSX inline styles
Stars: ✭ 12 (-42.86%)
Mutual labels:  viml
Maven Ide
maven-ide plugin
Stars: ✭ 15 (-28.57%)
Mutual labels:  viml
Vim Fenced Code Blocks
Edit fenced code blocks inside a GitHub Flavor Markdown in a better way.
Stars: ✭ 13 (-38.1%)
Mutual labels:  viml
Vim Americanize
Auto-"correct" British spellings to their American equivalent.
Stars: ✭ 14 (-33.33%)
Mutual labels:  viml
Focuspoint Vim
Vim color file that makes long coding sessions better while still maintaining color coordination and important keyword focus.
Stars: ✭ 12 (-42.86%)
Mutual labels:  viml
Vim Unite Watson.vim
vim-unite-watson.vim is the unite source for watson.
Stars: ✭ 13 (-38.1%)
Mutual labels:  viml
Papercolor.vim
Light Vim color scheme inspired by Google's Material Design
Stars: ✭ 14 (-33.33%)
Mutual labels:  viml
Dotfiles
My dotfiles
Stars: ✭ 12 (-42.86%)
Mutual labels:  viml
Morrowind
ports of the tango-based gedit "Oblivion" theme to other editors/ides
Stars: ✭ 14 (-33.33%)
Mutual labels:  viml
Ezjail Flavours
FreeBSD ezjail flavours
Stars: ✭ 12 (-42.86%)
Mutual labels:  viml
Dotfiles
All my bash / vim / ... stuff
Stars: ✭ 13 (-38.1%)
Mutual labels:  viml
Doxygentoolkit.vim
Doxygen plugin for vim
Stars: ✭ 20 (-4.76%)
Mutual labels:  viml
Vimgitlog
Git log and diff plugin for vim.
Stars: ✭ 15 (-28.57%)
Mutual labels:  viml
Dotfiles Vim
My ultimate vim productivity suite!
Stars: ✭ 14 (-33.33%)
Mutual labels:  viml

vim composer

Manage composer in Vim

:ComposerRun <args>

To run command for example :ComposerRun validate run command validate for your json

:ComposerGet

This command exec the installation flow of composer's install. This process require curl Also remeber that it is possibile run this vim command without enter inside the editor: $ vim -c 'ComposerGet' -c 'q'

:ComposerInstall [--no-dev ..]

This command exec composer install. Now you can attach after this command a custom callback to exec your personal flow.

:ComposerInit [--no-dev ..]

This command exec composer init.

function! MyCallbackFunction()
    exec ':silent ! ctags -a %'
endfunction
let g:composer_install_callback = "MyCallbackFunction"

In this example after every composer install I exec a ctags generation

:ComposerUpdate [--no-dev ..]

This command exec composer update.

:ComposerRequireFunc

This command exec composer require <vendor/repository> <version>.

:ComposerJSON

This command open composer.json

:ComposerKnowWhereCurrentFileIs

Instead of use CtrlP directly, this function check if composer's autogenerated files contains exactly one occurrence of curent word. In this case, class file will be opened. CtrlP with current word is called instead. And because is CtrlP wrapper, we suggest to eventually remap the function with p

nnoremap <Leader>p :call g:ComposerKnowWhereCurrentFileIs()<CR>

If zero or more than one occurrences are found, ... a Customizable function will be called. This function is called VimComposerCustomBehavior(). When you press p ComposerKnowWhereCurrentFileIs is called. If one file is found it will be opened. If not, this function is called with current word as parameter. If you want, you can call CtrlP. Here an example:

function! g:VimComposerCustomBehavior(currentWord)
    exec "normal \<c-p>" . a:currentWord
endfunction

Install

Bundle 'vim-php/vim-composer'

Force composer phar

This plugin support an autodetach test to check the correct path of composer.phar If this check fails you can try to force correct path

let g:composer_cmd = "/usr/bin/composer"
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].