Skip to content

Instantly share code, notes, and snippets.

@Osse
Created July 29, 2012 10:05
Show Gist options
  • Save Osse/3197213 to your computer and use it in GitHub Desktop.
Save Osse/3197213 to your computer and use it in GitHub Desktop.
Function that hackly tries to determine whether syntax folding is supported
function! HasSyntaxFolding()
redir => foo
silent syntax
redir END
return match(foo, '\<fold\>') == -1 ? 0 : 1
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment