From ff64be5fe506a9a15dce28bac5b5585d4430f4a6 Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Sun, 18 Jul 2010 19:07:26 +0200 Subject: Create case folded tags files when &ignorecase is on --- autoload.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/autoload.vim b/autoload.vim index bc679a8..847c0d2 100644 --- a/autoload.vim +++ b/autoload.vim @@ -1,6 +1,6 @@ " Vim script " Author: Peter Odding -" Last Change: July 15, 2010 +" Last Change: July 18, 2010 " URL: http://peterodding.com/code/vim/easytags/ let s:script = expand(':p:~') @@ -46,7 +46,9 @@ function! easytags#update_cmd(filter_invalid_tags) " {{{2 let start = xolox#timer#start() let tagsfile = easytags#get_tagsfile() let command = [g:easytags_cmd, '-f', shellescape(tagsfile), '--fields=+l'] - if filereadable(tagsfile) + if !filereadable(tagsfile) + call add(command, '--sort=' . (&ic ? 'foldcase' : 'yes')) + else call add(command, '-a') let filter_file_tags = update_tags && easytags#file_has_tags(filename) if a:filter_invalid_tags || filter_file_tags -- cgit v1.2.3