IDE completo html/php/css/js/mysql con VIM
Los complementos que utilizo para darle esta funcionalidad son:
- MRU
- TComment
- Matchit
- PhPCodeSniffer
- PHPMD
- Buffergator
- vim-addon-mw-utils
- tlib_vim
- vim-snipmate
- vim-snippets
- vim-phpqa
que proveen autocompletado, zen mode, comprobacion de sintaxis, resaltado de codigo, comentado e identado automatico, arbol de directorios entre otros.
El archivo de configuracion que yo uso es:
set nocompatible filetype off :set modifiable :set mouse=a :set number autocmd FileType php set omnifunc=phpcomplete#CompletePHP autocmd FileType html set omnifunc=htmlcomplete#CompleteTags autocmd FileType css set omnifunc=csscomplete#CompleteCSS autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS " let g:phpqa_messdetector_ruleset = ".vim/bundle/phpmd/setup/src/main/xml/exts/phpmd.xml" let g:phpqa_codesniffer_args = "--standard=Zend" " " PHP Code Sniffer binary (default = "phpcs") let g:phpqa_codesniffer_cmd='.vim/bundle/PHP_CodeSniffer/scripts/phpcs' " " " PHP Mess Detector binary (default = "phpmd") let g:phpqa_messdetector_cmd='.vim/bundle/phpmd/src/bin/phpmd' " let g:phpqa_messdetector_autorun = 0 set rtp+=~/.vim/bundle/vundle/ call vundle#rc() " This is the Vundle package, which can be found on GitHub. " For GitHub repos, you specify plugins using the " 'user/repository' format Plugin 'gmarik/vundle' "MRU Plugin 'yegappan/mru' "TComment Plugin 'tomtom/tcomment_vim' "matchit Plugin 'tmhedberg/matchit' "PhPCodeSniffer Plugin 'squizlabs/PHP_CodeSniffer' "PHPMD Plugin 'phpmd/phpmd' " We could also add repositories with a ".git" extension Plugin 'scrooloose/nerdtree.git' " To get plugins from Vim Scripts, you can reference the plugin " by name as it appears on the site Plugin 'Buffergator' Bundle "MarcWeber/vim-addon-mw-utils" Bundle "tomtom/tlib_vim" Bundle "garbas/vim-snipmate" Bundle "honza/vim-snippets" Bundle 'joonty/vim-phpqa' " Now we can turn our filetype functionality back on filetype plugin indent on
Con esto tenemos una IDE totalmente completa y funcional para el desarrollo web.
1 comentarios:
Write comentariosMuy bueno tip, redditeado. :)
Reply