Reputation: 12910
I am trying to map a key to toggle Syntastic enable and disable on key, rather than active all the time.
I am have following in my ~/.vimrc
let g:syntastic_mode_map = { 'mode': 'passive', 'active_filetypes': [],'passive_filetypes': [] }
nnoremap <C-w><C-q> :SyntasticCheck<CR> :SyntasticToggleMode<CR>
However when I press CTRL+q or CTRL+w nothing happens.
Upvotes: 0
Views: 61
Reputation: 94473
Split in 2 mappings:
nnoremap <C-w> :SyntasticCheck<CR>
nnoremap <C-q> :SyntasticToggleMode<CR>
Upvotes: 1