Skip to content

Instantly share code, notes, and snippets.

@macskay
Last active May 23, 2018 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macskay/5525225a53e1d9f0a57533eded680bd0 to your computer and use it in GitHub Desktop.
Save macskay/5525225a53e1d9f0a57533eded680bd0 to your computer and use it in GitHub Desktop.
vim-syntastic Toggle Button for Location List
# Taken from my dotfiles
map <F8> <ESC>:call SyntasticToggle()<CR>
let g:syntastic_is_open = 0
function! SyntasticToggle()
if g:syntastic_is_open == 1
lclose
let g:syntastic_is_open = 0
else
Errors
let g:syntastic_is_open = 1
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment