Viml functional

From wikinotes

Filter

mylist = ["ditch", "KEEP", v:null, "KEEP"]
let filtered = filter(copy(mylist), 'v:val == "KEEP"')