update vimrc

This commit is contained in:
Simon Vieille 2019-03-28 13:18:31 +01:00
parent 12e73fcdbe
commit 5f3a75d94f
Signed by: deblan
GPG Key ID: 03383D15A1D31745
1 changed files with 61 additions and 12 deletions

73
vimrc
View File

@ -34,7 +34,6 @@ Plugin 'tobyS/vmustache.git'
Plugin 'sjl/gundo.vim.git' Plugin 'sjl/gundo.vim.git'
Plugin 'godlygeek/tabular.git' Plugin 'godlygeek/tabular.git'
Plugin 'tpope/vim-fugitive.git' Plugin 'tpope/vim-fugitive.git'
Plugin 'airblade/vim-gitgutter.git'
Plugin 'groenewege/vim-less.git' Plugin 'groenewege/vim-less.git'
Plugin 'arnaud-lb/vim-php-namespace.git' Plugin 'arnaud-lb/vim-php-namespace.git'
Plugin 'tpope/vim-surround.git' Plugin 'tpope/vim-surround.git'
@ -61,12 +60,29 @@ Plugin 'evandotpro/nerdtree-chmod'
Plugin 'shawncplus/phpcomplete.vim' Plugin 'shawncplus/phpcomplete.vim'
Plugin 'bronson/vim-trailing-whitespace' Plugin 'bronson/vim-trailing-whitespace'
Plugin 'jacoborus/tender' Plugin 'jacoborus/tender'
Plugin 'vexxor/phpdoc.vim' " Plugin 'vexxor/phpdoc.vim'
Plugin 'Rican7/php-doc-modded'
Plugin 'mzlogin/vim-markdown-toc' Plugin 'mzlogin/vim-markdown-toc'
Plugin 'rosenfeld/conque-term' Plugin 'rosenfeld/conque-term'
Plugin 'joonty/vdebug' " Plugin 'joonty/vdebug'
Plugin 'isRuslan/vim-es6' Plugin 'isRuslan/vim-es6'
Plugin 'suan/vim-instant-markdown' Plugin 'suan/vim-instant-markdown'
Plugin 'dracula/vim'
Plugin 'sniphpets/sniphpets-doctrine'
Plugin 'sniphpets/sniphpets'
Plugin 'jaxbot/semantic-highlight.vim'
Plugin 'thaerkh/vim-indentguides'
Plugin 'PotatoesMaster/i3-vim-syntax'
Plugin 'fatih/vim-go'
Plugin 'mhinz/vim-signify'
Plugin 'andrewradev/splitjoin.vim'
Plugin 'wahidrahim/resize-font'
Plugin 'skywind3000/asyncrun.vim'
Plugin 'valloric/listtoggle'
Plugin 'c9s/phpunit.vim'
Plugin 'terryma/vim-multiple-cursors'
Plugin 'dkarter/bullets.vim'
Plugin 'connorholyday/vim-snazzy'
call vundle#end() call vundle#end()
@ -77,7 +93,9 @@ call vundle#end()
syntax on syntax on
if has('gui_running') if has('gui_running')
colorscheme tender " colorscheme tender
" colorscheme dracula
colorscheme snazzy
else else
colorscheme Tomorrow-Night-Bright colorscheme Tomorrow-Night-Bright
endif endif
@ -97,6 +115,13 @@ set completeopt-=preview
" PLUGINS CONFIGURATION " PLUGINS CONFIGURATION
""""""""""""""""""""""""""" """""""""""""""""""""""""""
" SEMANTIC "
""""""""""""
if has('gui_running')
let g:semanticEnableFileTypes = { 'javascript': 'js', 'vim': 'vim', 'php': 'php'}
endif
" PHP-CS-FIXER " " PHP-CS-FIXER "
"""""""""""""""" """"""""""""""""
@ -118,7 +143,10 @@ let g:NERDTreeIndicatorMapCustom = {
" Markdown preview " " Markdown preview "
"""""""""""""""""""" """"""""""""""""""""
let g:vim_markdown_auto_insert_bullets = 1
let g:vim_markdown_follow_anchor = 1
let g:vim_markdown_autowrite = 0
let g:vim_markdown_conceal = 0
let g:instant_markdown_autostart = 0 let g:instant_markdown_autostart = 0
" COLORIZER " " COLORIZER "
@ -138,6 +166,7 @@ let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>" let g:UltiSnipsJumpBackwardTrigger="<c-z>"
let g:UltiSnipsEditSplit="vertical" let g:UltiSnipsEditSplit="vertical"
" AIRLINE " " AIRLINE "
""""""""""" """""""""""
@ -200,6 +229,15 @@ command! Sfservices CtrlPSymfonyServices
command! Sfservicesdefinition CtrlPSymfonyServiceDefinition command! Sfservicesdefinition CtrlPSymfonyServiceDefinition
command! Sfforms CtrlPSymfonyForms command! Sfforms CtrlPSymfonyForms
" PHP-CS-FIXER "
""""""""""""""""
let g:php_cs_fixer_php_path = "/usr/bin/php7.1"
" CTAGS "
"""""""""
command! CT AsyncRun ctags **/*.php
" EMMET " " EMMET "
""""""""" """""""""
@ -361,6 +399,7 @@ noremap <F11> :call PhpDoc()<CR>
" set keywordprg=pman " set keywordprg=pman
let mapleader = "_" let mapleader = "_"
map <F1> :!indentation %<CR> map <F1> :!indentation %<CR>
map <F2> :call PhpCsFixerFixFile()<CR> map <F2> :call PhpCsFixerFixFile()<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>
@ -368,13 +407,16 @@ map <c-B> :!php -l %<CR>
map <c-s> :w<CR> map <c-s> :w<CR>
map <F6> :call PhpInsertUse()<CR> map <F6> :call PhpInsertUse()<CR>
vmap <leader>cc :s/_\([a-z]\)/\U\1/g<cr> vmap <leader>cc :s/\%V_\([a-z]\)/\U\1/g<cr>
vmap <leader>sc :s/\([A-Z]\)/_\L\1/g<cr> vmap <leader>sc :s/\%V\([A-Z]\)/_\L\1/g<cr>
vmap <leader>lc <leader>sc<cr> vmap <leader>lc <leader>sc<cr>
nmap <leader>cc viw<leader>cc
nmap <leader>sc viw<leader>sc nmap <leader>cc vaw<leader>cc
nmap <leader>lc viw<leader>sc nmap <leader>sc vaw<leader>sc
nmap <leader>lc vaw<leader>sc
nmap <F7> ins<tab><esc>o nmap <F7> ins<tab><esc>o
nmap <c-Down> :ResizeFontSmaller<CR>
nmap <c-Up> :ResizeFontBigger<CR>
inoremap <silent> <Bar> <Bar><Esc>:call <SID>align()<CR>a inoremap <silent> <Bar> <Bar><Esc>:call <SID>align()<CR>a
@ -396,6 +438,7 @@ endfunction
set mouse=a set mouse=a
set autoindent set autoindent
set nu set nu
set rnu
set showmatch set showmatch
set tabstop=4 set tabstop=4
set shiftwidth=4 set shiftwidth=4
@ -408,6 +451,7 @@ set fdc=2
set splitbelow set splitbelow
set splitright set splitright
set hlsearch set hlsearch
set modeline
" set guifont=Consolas\ 13 " set guifont=Consolas\ 13
set guifont=Fantasque\ Sans\ Mono\ 14 set guifont=Fantasque\ Sans\ Mono\ 14
@ -415,11 +459,14 @@ autocmd FileType php setlocal expandtab
autocmd FileType javascript setlocal expandtab autocmd FileType javascript setlocal expandtab
autocmd FileType xml setlocal expandtab autocmd FileType xml setlocal expandtab
autocmd FileType css setlocal expandtab autocmd FileType css setlocal expandtab
autocmd FileType scss setlocal expandtab
autocmd FileType go setlocal expandtab
autocmd FileType coffee setlocal expandtab autocmd FileType coffee setlocal expandtab
autocmd FileType ts setlocal expandtab autocmd FileType ts setlocal expandtab
autocmd FileType html setlocal expandtab autocmd FileType html setlocal expandtab
autocmd FileType twig setlocal expandtab autocmd FileType twig setlocal expandtab
autocmd FileType json setlocal expandtab autocmd FileType json setlocal expandtab
autocmd FileType python setlocal noexpandtab
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
@ -428,5 +475,7 @@ autocmd FileType php setlocal omnifunc=phpcomplete#CompletePHP
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
au BufNewFile,BufRead *.yaml,*.yml setfiletype yaml au BufRead,BufNewFile *.yaml,*.yml setfiletype yaml
au BufRead,BufNewFile *.twig setfiletype twig au BufRead,BufNewFile *.vue setfiletype html
au BufRead,BufNewFile *.html.twig,*.twig setfiletype twig
au BufRead,BufNewFile *.js setfiletype js