php binary

This commit is contained in:
Simon Vieille 2020-04-20 09:05:39 +02:00
parent 1a2edbce94
commit 949c8f122d
Signed by: deblan
GPG key ID: 03383D15A1D31745

29
vimrc
View file

@ -39,7 +39,7 @@ Plugin 'arnaud-lb/vim-php-namespace.git'
Plugin 'tpope/vim-surround.git' Plugin 'tpope/vim-surround.git'
Plugin 'scrooloose/nerdtree' Plugin 'scrooloose/nerdtree'
Plugin 'nerdtree-ack' Plugin 'nerdtree-ack'
Plugin 'php-cs-fixer' " Plugin 'php-cs-fixer'
Plugin 'php-doc-upgrade' Plugin 'php-doc-upgrade'
Plugin 'php.vim' Plugin 'php.vim'
Plugin 'closetag.vim' Plugin 'closetag.vim'
@ -83,6 +83,7 @@ Plugin 'c9s/phpunit.vim'
Plugin 'terryma/vim-multiple-cursors' Plugin 'terryma/vim-multiple-cursors'
Plugin 'dkarter/bullets.vim' Plugin 'dkarter/bullets.vim'
Plugin 'connorholyday/vim-snazzy' Plugin 'connorholyday/vim-snazzy'
" Plugin 'patstockwell/vim-monokai-tasty'
call vundle#end() call vundle#end()
@ -95,6 +96,7 @@ syntax on
if has('gui_running') if has('gui_running')
" colorscheme tender " colorscheme tender
" colorscheme dracula " colorscheme dracula
" colorscheme vim-monokai-tasty
colorscheme snazzy colorscheme snazzy
else else
colorscheme Tomorrow-Night-Bright colorscheme Tomorrow-Night-Bright
@ -122,11 +124,6 @@ if has('gui_running')
let g:semanticEnableFileTypes = { 'javascript': 'js', 'vim': 'vim', 'php': 'php'} let g:semanticEnableFileTypes = { 'javascript': 'js', 'vim': 'vim', 'php': 'php'}
endif endif
" PHP-CS-FIXER "
""""""""""""""""
let g:php_cs_fixer_level = 'symfony'
" NERDTREE-GIT " " NERDTREE-GIT "
"""""""""""""""" """"""""""""""""
let g:NERDTreeIndicatorMapCustom = { let g:NERDTreeIndicatorMapCustom = {
@ -149,6 +146,9 @@ let g:vim_markdown_autowrite = 0
let g:vim_markdown_conceal = 0 let g:vim_markdown_conceal = 0
let g:instant_markdown_autostart = 0 let g:instant_markdown_autostart = 0
let g:polyglot_disabled = ['markdown']
" COLORIZER " " COLORIZER "
""""""""""""" """""""""""""
@ -232,7 +232,8 @@ command! Sfforms CtrlPSymfonyForms
" PHP-CS-FIXER " " PHP-CS-FIXER "
"""""""""""""""" """"""""""""""""
let g:php_cs_fixer_php_path = "/usr/bin/php7.1" let g:php_cs_fixer_level = ''
let g:php_cs_fixer_php_path = "/usr/bin/php7.3"
" CTAGS " " CTAGS "
""""""""" """""""""
@ -381,6 +382,15 @@ augroup phpSyntaxOverride
augroup END augroup END
let g:pdv_template_dir = $HOME."/.vim/bundle/pdv/templates_snip/" let g:pdv_template_dir = $HOME."/.vim/bundle/pdv/templates_snip/"
let g:pdv_cfg_autoEndFunction = 0
let g:pdv_cfg_autoEndClass = 0
let g:pdv_cfg_php4always = 0
let g:pdv_cfg_php4guess = 0
let g:pdv_cfg_annotation_Package = 0
let g:pdv_cfg_annotation_Version = 0
let g:pdv_cfg_annotation_Copyright = 0
let g:pdv_cfg_annotation_License = 0
" Vdebug " " Vdebug "
"""""""""" """"""""""
@ -401,7 +411,7 @@ noremap <F11> :call PhpDoc()<CR>
let mapleader = "_" let mapleader = "_"
map <F1> :!indentation %<CR> map <F1> :!indentation %<CR>
map <F2> :call PhpCsFixerFixFile()<CR> map <F2> :!php7.3 ~/php-cs-fixer.phar fix "%" --rules=@PSR2 <CR>
map <F8> :!phpmd % text /usr/share/phpmd/psr2.xml \| cut -d: -f2-<CR> map <F8> :!phpmd % text /usr/share/phpmd/psr2.xml \| cut -d: -f2-<CR>
map <c-B> :!php -l %<CR> map <c-B> :!php -l %<CR>
map <c-s> :w<CR> map <c-s> :w<CR>
@ -451,7 +461,8 @@ set fdc=2
set splitbelow set splitbelow
set splitright set splitright
set hlsearch set hlsearch
set modeline set nomodeline
" set modeline
" set guifont=Consolas\ 13 " set guifont=Consolas\ 13
set guifont=Fantasque\ Sans\ Mono\ 14 set guifont=Fantasque\ Sans\ Mono\ 14