Isolate result parsing logic in vim.erl