From bc00b0707949454c8d66852ceff34ea040585f1e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 25 Aug 2015 02:28:56 +0900 Subject: [PATCH] Fix #3 - Use colors instead of --with-nth for readability --- plugin/fzf.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 70b2c1b..dd5ff3a 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -379,9 +379,9 @@ function! s:tags(bang) let tagfile = tagfiles()[0] call s:fzf({ \ 'source': 'cat '.shellescape(tagfile). - \ '| grep -v "^!"', + \ '| grep -v "^!" | perl -pe "s/^(.*?)\t(.*?)\t/\x1b[33m\1\x1b[m\t\x1b[34m\2\x1b[m\t/"', \ 'dir': fnamemodify(tagfile, ':h'), - \ 'options': '+m -d "\t" --with-nth 1,4.. -n 1 --prompt "Tags> "'.s:expect(), + \ 'options': '--ansi +m --tiebreak=begin --prompt "Tags> "'.s:expect(), \ 'sink*': function('s:tags_sink')}, a:bang) endfunction