Commits

Anonymous committed 9873562

change to vundle try jedi-vim and/or youCompleteMe and/or project

Comments (0)

Files changed (2)

 "comment récupérer le menu de vim sous gnome
 " http://vim.wikia.com/wiki/Restore_missing_gvim_menu_bar_under_GNOME
 
+" vundle remplace pathogene
+" https://github.com/gmarik/vundle
+" vundle sous windows
+" https://github.com/gmarik/vundle/wiki/Vundle-for-Windows
+set rtp+=~/.vim/bundle/vundle/
+call vundle#rc()
 
-" ajout du plugin pathogen
-" cd ~/.vim/autoload
-" wget https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
-" then modify youre .vimrc to add this line
-call pathogen#infect()
+if exists(':Bundle')
+    Bundle 'php.vim'
+    Bundle 'https://github.com/scrooloose/nerdtree'
+    Bundle 'https://github.com/tpope/vim-surround'
+    " avoir si utltisnips est plus intéressant que snipmate
+    Bundle 'snipmate.vim'
+    " Bundle 'https://github.com/SirVer/ultisnips'
+    Bundle 'https://github.com/godlygeek/tabular'
+    " phpqa permet de vérifier la syntaxe etc ... tous les ...lint
+    Bundle 'https://github.com/joonty/vim-phpqa'
+    Bundle 'http://github.com/shawncplus/phpcomplete.vim'
+    " word complete est lent vs YouCompleteMe ou vim-jedi
+    " Bundle 'https://github.com/vim-scripts/word_complete.vim'
+    " Bundle 'word_complete.vim'
+    " Bundle 'project.vim'
+    Bundle 'https://github.com/amiorin/vim-project'
+    Bundle 'https://github.com/Valloric/YouCompleteMe'
+    " Bundle 'https://github.com/davidhalter/jedi-vim'
+end
+
+" paramétrage du plugin project
+set rtp+=~/.vim/bundle/vim-project/
+call project#rc("~/geek/dev")
+Project '/home/sbard/geek/dev/php/test_unit'      , 'phptest' 
+Project '/home/sbard/geek/dev/drupal7'      , 'drupaldoc' 
 
 " Espace
 " set nowrap                      " don't wrap lines
 
 let &guicursor = &guicursor . ",a:blinkon0"
 
-" nécessaire pour le plugin CtrlP
-" https://github.com/kien/ctrlp.vim.git bundle/ctrlp.vim
-" set runtimepath^=~/.vim/bundle/ctrlp.vim
-" https://github.com/vim-scripts/snipMate
-" http://github.com/msanders/snipmate.vim
-set runtimepath^=~/.vim/bundle/snipmate.vim
-" https://github.com/tpope/vim-surround
-set runtimepath^=~/.vim/bundle/vim-surround
-" https://github.com/godlygeek/tabular
-" git clone git://github.com/godlygeek/tabular.git
-set runtimepath^=~/.vim/bundle/tabular
-
-" nerdtree
-" https://github.com/scrooloose/nerdtree
-" cd ~/.vim/bundle
-" git clone https://github.com/scrooloose/nerdtree.git
-
 if has("autocmd")
     " s'assurer que le NERDTree est chargé dès le départ de vim
     " autocmd vimenter * NERDTree
 " ALL FOR PHP !!!
 " vous aurez besoin du fichier php.api
 " et également du plugin word_complete
-" et également du plugin project
+" et du plugin project si vous les souhaitez
+" voir https://github.com/amiorin/vim-project pour plus d'info
 
 if has("autocmd")
+
+    " n'exécute pas messdetector à la sauvegarde (default = 1)
+    let g:phpqa_messdetector_autorun = 0
+    
+    " n'exécute pas codesniffer à la sauvegarde (default = 1)
+    let g:phpqa_codesniffer_autorun = 0
+    
+    " affiche le taux de couverture au chargement de l'éditeur (default = 0)
+    let g:phpqa_codecoverage_autorun = 1
+
     "My prefered values :)
     autocmd FileType php set shiftwidth=4
     autocmd FileType php set tabstop=4
     
     autocmd FileType php set complete=.,w,b,u,t,i,k~/.vim/syntax/php.api
     autocmd FileType php set omnifunc=phpcomplete#CompletePHP
-    autocmd FileType php source ~/.vim/plugin/word_complete.vim
-    autocmd FileType php call DoWordComplete()
+    " autocmd FileType php source ~/.vim/bundle/word_complete.vim/plugin/word_complete.vim
+    " autocmd FileType php call DoWordComplete()
     
     "Use Project"
-    autocmd FileType php runtime! ~/.vim/plugin/Project.vim
+    " autocmd FileType php runtime! ~/.vim/bundle/project.vim/plugin/project.vim
 
     " Create tags with '\1' command
     function! Phptags()
     endfunction
     
     autocmd FileType php let g:proj_run1='call Phptags()'
+    autocmd FileType php nmap <F8> :call Phptags()<CR>
     
     " F9 will do a PHP lint !
     autocmd FileType php set makeprg = "php -l %"
     https://github.com/davidhalter/jedi-vim
     http://www.lykostech.net/using-vim-as-python-ide/
     http://joncairns.com/2012/05/using-vim-as-a-php-ide/
+    http://lepture.com/work/vundle-vs-pathogen