Don't enable syntax highlighting in vimdiff, and since so few terminals

support right clicking, the middle click now selects text between the
cursor and mouse, and to enter input mode at the cursor, hold alt while
middle clicking.
This commit is contained in:
Kevin 2014-04-17 12:18:26 -04:00
parent 82ce32da25
commit 93622b42f9
2 changed files with 22 additions and 15 deletions

View file

@ -43,11 +43,12 @@
" "
" Mappings: " Mappings:
" (mouse) " (mouse)
" <MiddleMouse | (N) -> enter input mode where you click " <MiddleClick> | (N) -> select text between the mouse and cursor
" <C-MiddleMouse> | (N) -> paste text from current buffer at cursor " <A-MiddleClick> | (N) -> enter input mode where you click
" <C-MiddleClick> | (N) -> paste text from current buffer at cursor
" "
" <C-LeftMouse> | (N) -> select the current line in normal mode " <C-LeftClick> | (N) -> select the current line in normal mode
" <C-LeftMouse> | (I) -> select the current line in input mode " <C-LeftClick> | (I) -> select the current line in input mode
" "
" <Ctrl-ScrollUp> | (A) -> scroll right a few characters at a time " <Ctrl-ScrollUp> | (A) -> scroll right a few characters at a time
" <Ctrl-ScrollDown> | (A) -> scroll left a few characters at a time " <Ctrl-ScrollDown> | (A) -> scroll left a few characters at a time
@ -251,7 +252,8 @@
"MAPPINGS: GENERAL KEYBINDINGS AND REBINDINGS {{{ "MAPPINGS: GENERAL KEYBINDINGS AND REBINDINGS {{{
"MOUSE:{ "MOUSE:{
"midle click enters input mode "midle click enters input mode
nnoremap <MiddleMouse> <LeftMouse>i nnoremap <MiddleMouse> <RightMouse>
nnoremap <A-MiddleMouse> <LeftMouse>i
nnoremap <C-MiddleMouse> <LeftMouse>p nnoremap <C-MiddleMouse> <LeftMouse>p
"hold ctrl to scroll left/right instead of up/down "hold ctrl to scroll left/right instead of up/down

View file

@ -91,6 +91,10 @@
if !exists("g:autostartchecker") if !exists("g:autostartchecker")
let g:autostartchecker=1 let g:autostartchecker=1
endif endif
if &diff
let g:autostartchecker=0
else
if (g:autostartchecker == 1) if (g:autostartchecker == 1)
let g:syntastic_mode_map = {'mode':'active','active_filetypes':[],'passive_filetypes':[]} let g:syntastic_mode_map = {'mode':'active','active_filetypes':[],'passive_filetypes':[]}
let g:syntastic_check_on_open=1 let g:syntastic_check_on_open=1
@ -102,6 +106,7 @@
let g:syntastic_always_populate_loc_list=1 let g:syntastic_always_populate_loc_list=1
let g:syntastic_auto_loc_list=1 let g:syntastic_auto_loc_list=1
let g:syntastic_loc_list_height=5 let g:syntastic_loc_list_height=5
endif
"}}} "}}}
"TAGBAR: {{{ "TAGBAR: {{{