comparison runtime/ftplugin/git.vim @ 2034:7bc41231fbc7

Update runtime files.
author Bram Moolenaar <bram@zimbu.org>
date Wed, 06 Jan 2010 20:54:52 +0100
parents f4f8014d516e
children f7579a31705c
comparison
equal deleted inserted replaced
2033:de5a43c5eedc 2034:7bc41231fbc7
1 " Vim filetype plugin 1 " Vim filetype plugin
2 " Language: generic git output 2 " Language: generic git output
3 " Maintainer: Tim Pope <vimNOSPAM@tpope.info> 3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org>
4 " Last Change: 2008 Jul 30 4 " Last Change: 2009 Dec 24
5 5
6 " Only do this when not done yet for this buffer 6 " Only do this when not done yet for this buffer
7 if (exists("b:did_ftplugin")) 7 if (exists("b:did_ftplugin"))
8 finish 8 finish
9 endif 9 endif
27 let &l:path = escape(b:git_dir,'\, ').','.&l:path 27 let &l:path = escape(b:git_dir,'\, ').','.&l:path
28 let &l:keywordprg = 'git --git-dir='.shellescape(b:git_dir).' show' 28 let &l:keywordprg = 'git --git-dir='.shellescape(b:git_dir).' show'
29 else 29 else
30 setlocal keywordprg=git\ show 30 setlocal keywordprg=git\ show
31 endif 31 endif
32 if has('gui_running')
33 let &l:keywordprg = substitute(&l:keywordprg,'^git\>','git --no-pager','')
34 endif
32 35
33 setlocal includeexpr=substitute(v:fname,'^[^/]\\+/','','') 36 setlocal includeexpr=substitute(v:fname,'^[^/]\\+/','','')
34 let b:undo_ftplugin = "setl keywordprg< path< includeexpr<" 37 let b:undo_ftplugin = "setl keywordprg< path< includeexpr<"