From dbc56b787ca59b90c43c46298e0d99e6bedfcb67 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Thu, 11 Aug 2016 20:54:06 -0600 Subject: Adding more options --- plugin/vim-options.vim | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'plugin') diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim index 5207ebf..feea0ee 100644 --- a/plugin/vim-options.vim +++ b/plugin/vim-options.vim @@ -422,3 +422,35 @@ if !empty(glob(EditorDir.'/plugged/ack.vim/plugin/ack.vim')) endfunction endif "----------------------------------------------------------------------------------------------------------------------- + + + +"----------------------------------------------------------------------------------------------------------------------- +" Syntastic +"----------------------------------------------------------------------------------------------------------------------- +if !empty(glob(EditorDir.'/plugged/syntastic/plugin/syntastic.vim')) + let g:syntastic_php_checkers = ['php', 'phpcs'] + let g:syntastic_php_phpcs_args = "--standard=".$HOME."/PEARish.xml,PSR2,Symfony2" + let g:syntastic_javascript_checkers = ['eslint'] + let g:syntastic_always_populate_loc_list = 1 + let g:syntastic_auto_loc_list = 0 + let g:syntastic_check_on_open = 1 + let g:syntastic_check_on_wq = 0 + let g:syntastic_aggregate_errors = 1 +endif +"----------------------------------------------------------------------------------------------------------------------- + + + +"----------------------------------------------------------------------------------------------------------------------- +" Toggle List +"----------------------------------------------------------------------------------------------------------------------- +if !empty(glob(EditorDir.'/plugged/vim-togglelist/plugin/togglelist.vim')) + noremap [ :lprevious + noremap ] :lnext + noremap p :ll + " Disable the mapping it overwrites leader q + let g:toggle_list_no_mappings = 1 + nmap