From 0bb9462f0d608a736307bf3233f65f964d721d47 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 7 Apr 2018 15:11:26 +0200 Subject: tabs_grep.vim: Split `:tabs` output on `\n` Otherwise it splits on spaces, and I end up with word elements in my list instead of line elements. --- plugin/tabs_grep.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/tabs_grep.vim b/plugin/tabs_grep.vim index 8860ad1..35a00fa 100644 --- a/plugin/tabs_grep.vim +++ b/plugin/tabs_grep.vim @@ -4,8 +4,9 @@ function! TabsGrep(search) silent tabs redir END - let tabs = split(tabs_output) + let tabs = split(tabs_output, '\n') + echo tabs call filter(tabs, function('s:MatchString', [a:search])) echo tabs -- cgit v1.2.3