Skip to content

Instantly share code, notes, and snippets.

@fatih
Created May 11, 2014 14:02
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 fatih/65446a5816bea7a8ee82 to your computer and use it in GitHub Desktop.
Save fatih/65446a5816bea7a8ee82 to your computer and use it in GitHub Desktop.
let data = ['func Split(s string, sep string) []string', 'func SplitAfter(s string, sep string) []s
tring', 'func SplitAfterN(s string, sep string, n int) []string', 'func SplitN(s string,
sep string, n int) []string']
let wordMatch = "'\<" . expand("<cword>") . "\>'"
let filtered = filter(infos, 'v:val !~ ' . wordMatch)
echo filtered
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment