motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit af9d44f91bedddb3a60fb7df5f4841143e33ed40 (tree)
parent 156123520b1b0f1e128837a4c51f4246017932d4
Author: Tim Pope <code@tpope.net>
Date:   Mon,  7 Feb 2011 15:02:25 -0500

Add filetype specific tags

Diffstat:
Mplugin/fugitive.vim | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -137,6 +137,9 @@ function! s:Detect(path) call buffer.setvar('&path',s:sub(buffer.getvar('&path'),'^\.%(,|$)','')) endif if b:git_dir !~# ',' && stridx(buffer.getvar('&tags'),b:git_dir.'/tags') == -1 + if &filetype != '' + call buffer.setvar('&tags',buffer.getvar('&tags').','.b:git_dir.'/'.&filetype.'.tags') + endif call buffer.setvar('&tags',buffer.getvar('&tags').','.b:git_dir.'/tags') endif endif