From 1a33faf1c4dcd79a89004c4064454845cf32b5d4 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Tue, 23 Jan 2018 15:26:00 -0700 Subject: Adding formatting shortcuts --- plugin/vim-options.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'plugin') diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim index f549dcb..1ab3d77 100644 --- a/plugin/vim-options.vim +++ b/plugin/vim-options.vim @@ -206,6 +206,12 @@ nnoremap [q :cprev nnoremap ]q :cnext " Autocomplete popup mappings inoremap pumvisible() ? "\" : "\" +" Some formatting shortcuts +nnoremap g1 V:s/\<./\u&/g:noh +nnoremap g2 V:s/-/ /g:noh +nnoremap g3 ^v$:s/\%V /-/g:noh +nnoremap g4 V:s/ /_/g:noh +nnoremap g5 ^v$:s/\%V /_/g:noh: "----------------------------------------------------------------------------------------------------------------------- @@ -330,7 +336,7 @@ if !empty(glob($EditorDir.'plugged/syntastic/plugin/syntastic.vim')) let g:syntastic_python_checkers = ['pyton3', 'flake8', 'mypy'] let g:syntastic_scss_checkers = ['sass_lint'] let g:syntastic_php_phpcs_args = "--standard=/root/PEARish.xml,PSR2,Symfony2" - let g:syntastic_always_populate_loc_list = 1 + let g:syntastic_always_populate_loc_list = 0 let g:syntastic_auto_loc_list = 0 let g:syntastic_check_on_wq = 0 let g:syntastic_check_on_open = 0 -- cgit v1.2.3