Skip to content

Instantly share code, notes, and snippets.

@whyrusleeping
Created June 17, 2013 23:33
Show Gist options
  • Select an option

  • Save whyrusleeping/5801458 to your computer and use it in GitHub Desktop.

Select an option

Save whyrusleeping/5801458 to your computer and use it in GitHub Desktop.
struct Method and Member highlighting for go in vim
syn match goMember "\.\zs\w\+\ze\%((\@!\W\)"
syn match goMethod "\.\zs\w\+\ze("
hi def link goMember Identifier
hi def link goMethod Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment