aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2018-01-23 15:26:00 -0700
committerCody Hiar <codyfh@gmail.com>2018-01-23 15:26:00 -0700
commit1a33faf1c4dcd79a89004c4064454845cf32b5d4 (patch)
tree2484595939f6eb833992679f501351401c80ae95 /plugin
parent86354688d61744165264135c1ae9ce48bbe50e78 (diff)
Adding formatting shortcuts
Diffstat (limited to 'plugin')
-rw-r--r--plugin/vim-options.vim8
1 files changed, 7 insertions, 1 deletions
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<CR>
nnoremap ]q :cnext<CR>
" Autocomplete popup mappings
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<CR>"
+" Some formatting shortcuts
+nnoremap g1 V:s/\<./\u&/g<CR>:noh<CR>
+nnoremap g2 V:s/-/ /g<CR>:noh<CR>
+nnoremap g3 ^v$:s/\%V /-/g<CR>:noh<CR>
+nnoremap g4 V:s/ /_/g<CR>:noh<CR>
+nnoremap g5 ^v$:s/\%V /_/g<CR>:noh:<CR>
"-----------------------------------------------------------------------------------------------------------------------
@@ -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