Gaurang Shah
Gaurang Shah

Reputation: 12910

vim key mapping for SyntasticCheck plugin is not working

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

Answers (1)

phd
phd

Reputation: 94473

Split in 2 mappings:

nnoremap <C-w> :SyntasticCheck<CR>
nnoremap <C-q> :SyntasticToggleMode<CR>

Upvotes: 1

Related Questions