mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-22 06:44:09 -05:00
Sync syntastic toggle actions + disable with extradite to avoid conflict
This commit is contained in:
parent
26a209f4f5
commit
64399b2404
2 changed files with 37 additions and 9 deletions
|
@ -513,12 +513,12 @@
|
|||
inoremap <silent><expr> <A-F3> '<C-O>:TagbarToggle<CR>'
|
||||
|
||||
"view commit history and diffs
|
||||
nnoremap <expr><silent> <C-F4> ':Extradite!<CR>:resize 10<CR>:wincmd x<CR>:wincmd b<CR>:wincmd H<CR>:wincmd b<CR>'
|
||||
xnoremap <expr><silent> <C-F4> '<Esc>:Extradite!<CR>:resize 10<CR>:wincmd x<CR>:wincmd b<CR>:wincmd H<CR>:wincmd b<CR>'
|
||||
inoremap <expr><silent> <C-F4> '<Esc>:Extradite!<CR>:resize 10<CR>:wincmd x<CR>:wincmd b<CR>:wincmd H<CR>:wincmd b<CR>'
|
||||
nnoremap <expr><silent> <A-F4> ':Extradite!<CR>:resize 10<CR>:wincmd x<CR>:wincmd b<CR>:wincmd H<CR>:wincmd b<CR>'
|
||||
xnoremap <expr><silent> <A-F4> '<Esc>:Extradite!<CR>:resize 10<CR>:wincmd x<CR>:wincmd b<CR>:wincmd H<CR>:wincmd b<CR>'
|
||||
inoremap <expr><silent> <A-F4> '<Esc>:Extradite!<CR>:resize 10<CR>:wincmd x<CR>:wincmd b<CR>:wincmd H<CR>:wincmd b<CR>'
|
||||
nnoremap <expr><silent> <C-F4> ':SyntasticToggleOff<CR>:Extradite!<CR>:resize 10<CR>:wincmd x<CR>:wincmd b<CR>:wincmd H<CR>:wincmd b<CR>'
|
||||
xnoremap <expr><silent> <C-F4> '<Esc>:SyntasticToggleOff<CR>:Extradite!<CR>:resize 10<CR>:wincmd x<CR>:wincmd b<CR>:wincmd H<CR>:wincmd b<CR>'
|
||||
inoremap <expr><silent> <C-F4> '<Esc>:SyntasticToggleOff<CR>:Extradite!<CR>:resize 10<CR>:wincmd x<CR>:wincmd b<CR>:wincmd H<CR>:wincmd b<CR>'
|
||||
nnoremap <expr><silent> <A-F4> ':SyntasticToggleOff<CR>:Extradite!<CR>:resize 10<CR>:wincmd x<CR>:wincmd b<CR>:wincmd H<CR>:wincmd b<CR>'
|
||||
xnoremap <expr><silent> <A-F4> '<Esc>:SyntasticToggleOff<CR>:Extradite!<CR>:resize 10<CR>:wincmd x<CR>:wincmd b<CR>:wincmd H<CR>:wincmd b<CR>'
|
||||
inoremap <expr><silent> <A-F4> '<Esc>:SyntasticToggleOff<CR>:Extradite!<CR>:resize 10<CR>:wincmd x<CR>:wincmd b<CR>:wincmd H<CR>:wincmd b<CR>'
|
||||
|
||||
"toggle line wrapping (and bottom bar if using the gui)
|
||||
nnoremap <silent><expr> <F1> ':set wrap!<CR>:echo "line wrapping toggled"<CR>'
|
||||
|
@ -534,9 +534,9 @@
|
|||
set pastetoggle=<F3>
|
||||
|
||||
"toggle syntax checking
|
||||
nnoremap <silent><expr> <F4> ':if (g:syntastic_check_on_open == 1)<Bar>let g:syntastic_check_on_open=0<Bar>else<Bar>let g:syntastic_check_on_open=1<Bar>endif<Bar>:SyntasticToggleMode<CR>'
|
||||
xnoremap <silent><expr> <F4> '<Esc>:if (g:syntastic_check_on_open == 1)<Bar>let g:syntastic_check_on_open=0<Bar>else<Bar>let g:syntastic_check_on_open=1<Bar>endif<Bar>:SyntasticToggleMode<CR>gv'
|
||||
inoremap <silent><expr> <F4> '<C-O>:if (g:syntastic_check_on_open == 1)<Bar>let g:syntastic_check_on_open=0<Bar>else<Bar>let g:syntastic_check_on_open=1<Bar>endif<Bar>:SyntasticToggleMode<CR>'
|
||||
nnoremap <silent><expr> <F4> ':SyntasticToggleAll<CR>'
|
||||
xnoremap <silent><expr> <F4> '<Esc>:SyntasticToggleAll<CR>gv'
|
||||
inoremap <silent><expr> <F4> '<C-O>:SyntasticToggleAll<CR>'
|
||||
|
||||
"toggle goyo
|
||||
nnoremap <silent><expr> <C-F12> ':Goyo<CR>'
|
||||
|
|
|
@ -178,6 +178,34 @@
|
|||
let g:syntastic_auto_loc_list=1
|
||||
let g:syntastic_loc_list_height=5
|
||||
endif
|
||||
|
||||
"function to enable syntastic and set check_on_open on
|
||||
function s:SyntasticToggleOn()
|
||||
let g:syntastic_check_on_open=1
|
||||
if (g:syntastic_mode_map.mode == "passive")
|
||||
SyntasticToggleMode
|
||||
endif
|
||||
endfunction
|
||||
command! -buffer SyntasticToggleOn call s:SyntasticToggleOn()
|
||||
|
||||
"function to disable syntastic and set check_on_open off
|
||||
function s:SyntasticToggleOff()
|
||||
let g:syntastic_check_on_open=0
|
||||
if (g:syntastic_mode_map.mode == "active")
|
||||
SyntasticToggleMode
|
||||
endif
|
||||
endfunction
|
||||
command! -buffer SyntasticToggleOff call s:SyntasticToggleOff()
|
||||
|
||||
"function to toggle syntastic and check_on_open on and off together
|
||||
function s:SyntasticToggleAll()
|
||||
if (g:syntastic_check_on_open == 1)
|
||||
call s:SyntasticToggleOff()
|
||||
else
|
||||
call s:SyntasticToggleOn()
|
||||
endif
|
||||
endfunction
|
||||
command! -buffer SyntasticToggleAll call s:SyntasticToggleAll()
|
||||
"}}}
|
||||
|
||||
"TABULAR: {{{
|
||||
|
|
Loading…
Reference in a new issue