Skip to content

Instantly share code, notes, and snippets.

@sgur
Created January 25, 2016 06:36
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 sgur/1d46c55629e2565954c1 to your computer and use it in GitHub Desktop.
Save sgur/1d46c55629e2565954c1 to your computer and use it in GitHub Desktop.
augroup ft_markdown_syntax
autocmd!
autocmd FileType markdown
\ let g:markdown_fenced_languages = uniq(sort(map(filter(getline(1, '$'), 'v:val =~# "^```\\k"'), 'matchstr(v:val, "^```\\zs\\k\\+$")')))
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment