aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <cody.hiar@investopedia.com>2016-08-11 20:54:06 -0600
committerCody Hiar <cody.hiar@investopedia.com>2016-08-11 20:54:06 -0600
commitdbc56b787ca59b90c43c46298e0d99e6bedfcb67 (patch)
tree31f750289cc0b76fe1f41c6f43f5d160271e6cde
parent34f0e419af752d6ff48ac10ab09a1d53146317ec (diff)
Adding more options
-rw-r--r--plugin/vim-options.vim32
1 files changed, 32 insertions, 0 deletions
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 <leader>[ :lprevious<CR>
+ noremap <leader>] :lnext<CR>
+ noremap <leader>p :ll<CR>
+ " Disable the mapping it overwrites leader q
+ let g:toggle_list_no_mappings = 1
+ nmap <script> <silent> <leader>l :call ToggleLocationList()<CR>
+endif
+"-----------------------------------------------------------------------------------------------------------------------