From 8cead121ce2d2e9ce252c5c9acb9974ddd95099f Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 1 Aug 2016 17:10:53 +0200 Subject: vim: Add phpqa, adapt unite ,q mapping Signed-off-by: Florian Pritz --- .gitmodules | 3 +++ .vim/bundle/vim-phpqa | 1 + .vimrc | 9 ++++++++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 160000 .vim/bundle/vim-phpqa diff --git a/.gitmodules b/.gitmodules index 11bf528..f35357d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -91,3 +91,6 @@ [submodule ".vim/bundle/vimshell.vim"] path = .vim/bundle/vimshell.vim url = https://github.com/Shougo/vimshell.vim.git +[submodule ".vim/bundle/vim-phpqa"] + path = .vim/bundle/vim-phpqa + url = https://github.com/joonty/vim-phpqa.git diff --git a/.vim/bundle/vim-phpqa b/.vim/bundle/vim-phpqa new file mode 160000 index 0000000..2e97eb0 --- /dev/null +++ b/.vim/bundle/vim-phpqa @@ -0,0 +1 @@ +Subproject commit 2e97eb0c74bbafd408d7bd03f589144441517a49 diff --git a/.vimrc b/.vimrc index 34a0953..32848d4 100644 --- a/.vimrc +++ b/.vimrc @@ -96,6 +96,7 @@ Plugin 'sjl/splice.vim' Plugin 'LaTeX-Box-Team/LaTeX-Box' Plugin 'chase/vim-ansible-yaml' Plugin 'vim-php/tagbar-phpctags.vim' +Plugin 'joonty/vim-phpqa.git' call vundle#end() syntax on @@ -196,6 +197,12 @@ let g:tagbar_autoclose=1 " syntastic let g:syntastic_check_on_open = 1 +" phpqa +let g:phpqa_messdetector_autorun = 0 +let g:phpqa_codesniffer_autorun = 0 +let g:phpqa_codecoverage_autorun = 0 +let g:phpqa_codecoverage_file = "code-coverage-report.xml" + " unite let g:unite_source_history_yank_enable = 1 call unite#filters#matcher_default#use(['matcher_fuzzy']) @@ -218,7 +225,7 @@ endfunction autocmd FileType unite call s:unite_settings() nnoremap w :Unite -buffer-name=files -start-insert file -nnoremap q :Unite -buffer-name=files -start-insert file_rec/async:! +nnoremap qq :Unite -buffer-name=files -start-insert file_rec/async:! nnoremap y :Unite -buffer-name=yank history/yank nnoremap b :Unite -buffer-name=buffer buffer -- cgit v1.2.3-24-g4f1b