From bffa058034a743ca83c01d5203a268ceeed03e88 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Tue, 10 Oct 2017 10:35:45 -0600 Subject: Updating options --- plugin/vim-options.vim | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'plugin') diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim index 1cdfa58..35d6a63 100644 --- a/plugin/vim-options.vim +++ b/plugin/vim-options.vim @@ -141,21 +141,16 @@ endfunction inoremap =CleverTab() " type jj to get out of insert mode inoremap jj -" Quick saving -nnoremap w :w -" Quick quiting -nnoremap q :q " Ctags for python project command! MakeTagsPython !ctags --languages=python --python-kinds=-i -R . " Command for figuring out highlight group map hi :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">" . " FG:" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"fg#") " Turn off syntax highlighting nnoremap :noh -" Shortcut for creating a new tab +" Shortcuts for window nnoremap t :tabnew -" Shortcuts for creating windows -nnoremap s :vsplit -nnoremap j :split +" Shorcut for stubbing out find command +nnoremap s :find " Formating a json file com! Formatjson %!python -m json.tool " Visually select pasted text @@ -169,9 +164,9 @@ nnoremap df :diffput nnoremap _ [c nnoremap = ]c " Open folder of current file -nnoremap n :e %:p:h +nnoremap nn :e %:p:h " Open NERDTree -nnoremap d :e. +nnoremap nm :e. " Function for saving session function! SaveSession() :mksession! $SessionDir/session.vim @@ -200,6 +195,11 @@ nnoremap ,cutf8 :-1read $EditorDir/plugged/vim-options/snippets/python/c nnoremap ,pudb :-1read $EditorDir/plugged/vim-options/snippets/python/pudb.pyV nnoremap ,pydef :-1read $EditorDir/plugged/vim-options/snippets/python/pydef.py/jumpV12j nnoremap ,pyclass :-1read $EditorDir/plugged/vim-options/snippets/python/pyclass.py/jump +" Arrow keys move windows +noremap k +noremap j +noremap h +noremap l "----------------------------------------------------------------------------------------------------------------------- @@ -460,6 +460,7 @@ endif "----------------------------------------------------------------------------------------------------------------------- if !empty(glob($EditorDir.'plugged/ale/autoload/ale.vim')) let g:ale_sign_column_always = 1 + let g:ale_lint_on_insert_leave = 1 highlight clear ALEErrorSign highlight clear ALEWarningSign endif -- cgit v1.2.3