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:
" (mouse)
" <MiddleMouse | (N) -> enter input mode where you click
" <C-MiddleMouse> | (N) -> paste text from current buffer at cursor
" <MiddleClick> | (N) -> select text between the mouse and 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-LeftMouse> | (I) -> select the current line in input mode
" <C-LeftClick> | (N) -> select the current line in normal mode
" <C-LeftClick> | (I) -> select the current line in input mode
"
" <Ctrl-ScrollUp> | (A) -> scroll right 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 {{{
"MOUSE:{
"midle click enters input mode
nnoremap <MiddleMouse> <LeftMouse>i
nnoremap <MiddleMouse> <RightMouse>
nnoremap <A-MiddleMouse> <LeftMouse>i
nnoremap <C-MiddleMouse> <LeftMouse>p
"hold ctrl to scroll left/right instead of up/down

View file

@ -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: {{{