From 1cc5bc4efac01f027dff19a231639ef2393a05f1 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Thu, 14 Jun 2018 15:47:42 -0600 Subject: Lint error shortcuts, python3 for pymode, ranger shortcuts --- plugin/vim-options.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plugin/vim-options.vim') diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim index 893d10d..727561e 100644 --- a/plugin/vim-options.vim +++ b/plugin/vim-options.vim @@ -95,9 +95,11 @@ nnoremap ld j^f$lC nnoremap ly vapyp{{jvEy}jvEpl " Accept current autocomplete suggestion inoremap pumvisible() ? "\" : "\" -" Faster jumping for linting erros +" Faster jumping for linting errors nnoremap [q :lprev nnoremap ]q :lnext +nnoremap [w :cprev +nnoremap ]w :cnext " Set breakpoint in python noremap eb ofrom pudb import set_trace; set_trace() " Vertical split instead of horiztonal @@ -277,6 +279,7 @@ endif " Pymode "----------------------------------------------------------------------------------------------------------------------- if !empty(glob($EditorDir.'plugged/python-mode/plugin/pymode.vim')) + let g:pymode_python = 'python3' let g:pymode_run = 1 let g:pymode_indent = 1 let g:pymode_motion = 1 @@ -298,7 +301,8 @@ endif "----------------------------------------------------------------------------------------------------------------------- if !empty(glob($EditorDir.'plugged/ranger.vim/plugin/ranger.vim')) let g:ranger_map_keys = 0 - nnoremap n :Ranger + nnoremap m :Ranger + nnoremap n :RangerWorkingDirectory let g:ranger_replace_netrw = 1 " open ranger when vim open a directory endif "----------------------------------------------------------------------------------------------------------------------- -- cgit v1.2.3