Bug#430105: default g:git_diff_spawn_mode

martin f krafft madduck at debian.org
Fri Jun 22 11:34:25 UTC 2007


Package: vim-scripts
Version: 7.1.1
Severity: wishlist
File: /usr/share/vim-scripts/ftplugin/git.vim
Tags: patch

Thanks for including git.vim. Unless one specifies
g:git_diff_spawn_mode in the user configuration file, the plugin
causes an error message about an undefined variable on vim startup
during a git commit.

I thus suggest to apply the following patch, which simply assumes
a default value.

Thanks,


diff -u /usr/share/vim-scripts/ftplugin/git.vim /tmp/git.vim
--- /usr/share/vim-scripts/ftplugin/git.vim 2007-06-21 16:28:39.000000000 +0100
+++ /tmp/git.vim  2007-06-22 12:32:12.000000000 +0100
@@ -76,6 +76,10 @@
 noremap <buffer> <Leader>ghd :call Git_diff_windows(0, 0)<cr>
 noremap <buffer> <Leader>gvd :call Git_diff_windows(1, 0)<cr>
 
+if !exists("g:git_diff_spawn_mode")
+  let g:git_diff_spawn_mode = 2
+endif
+
 if g:git_diff_spawn_mode == 1
     call Git_diff_windows(0, 1)
 elseif g:git_diff_spawn_mode == 2



-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

vim-scripts depends on no packages.

Versions of packages vim-scripts recommends:
ii  vim-gtk [gvim]               1:7.1-000+1 Vi IMproved - enhanced vi editor -

-- debconf-show failed

-- 
 .''`.   martin f. krafft <madduck at debian.org>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (GPG/PGP)
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20070622/9cc8caeb/attachment.pgp 


More information about the pkg-vim-maintainers mailing list