diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index 2addd0e..1f64b3e 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -43,11 +43,12 @@ " " Mappings: " (mouse) -" enter input mode where you click -" | (N) -> paste text from current buffer at cursor +" | (N) -> select text between the mouse and cursor +" | (N) -> enter input mode where you click +" | (N) -> paste text from current buffer at cursor " -" | (N) -> select the current line in normal mode -" | (I) -> select the current line in input mode +" | (N) -> select the current line in normal mode +" | (I) -> select the current line in input mode " " | (A) -> scroll right a few characters at a time " | (A) -> scroll left a few characters at a time @@ -251,7 +252,8 @@ "MAPPINGS: GENERAL KEYBINDINGS AND REBINDINGS {{{ "MOUSE:{ "midle click enters input mode - nnoremap i + nnoremap + nnoremap i nnoremap p "hold ctrl to scroll left/right instead of up/down diff --git a/vim/config/plugins.vim b/vim/config/plugins.vim index 6b017d1..95f305c 100644 --- a/vim/config/plugins.vim +++ b/vim/config/plugins.vim @@ -91,17 +91,22 @@ if !exists("g:autostartchecker") let g:autostartchecker=1 endif - if (g:autostartchecker == 1) - let g:syntastic_mode_map = {'mode':'active','active_filetypes':[],'passive_filetypes':[]} - let g:syntastic_check_on_open=1 - else - let g:syntastic_mode_map = {'mode':'passive','active_filetypes':[],'passive_filetypes':[]} - let g:syntastic_check_on_open=0 - endif - let g:syntastic_always_populate_loc_list=1 - let g:syntastic_auto_loc_list=1 - let g:syntastic_loc_list_height=5 + if &diff + let g:autostartchecker=0 + else + if (g:autostartchecker == 1) + let g:syntastic_mode_map = {'mode':'active','active_filetypes':[],'passive_filetypes':[]} + let g:syntastic_check_on_open=1 + else + let g:syntastic_mode_map = {'mode':'passive','active_filetypes':[],'passive_filetypes':[]} + let g:syntastic_check_on_open=0 + endif + + let g:syntastic_always_populate_loc_list=1 + let g:syntastic_auto_loc_list=1 + let g:syntastic_loc_list_height=5 + endif "}}} "TAGBAR: {{{