Bug#596871: vim-runtime: debchanglog.vim not compatible with NERD_tree plugin

Jan Christoph Ebersbach jceb at e-jc.de
Tue Sep 14 17:06:18 UTC 2010


Package: vim-runtime
Version: 2:7.3.000+hg~ee53a39d5896-1
Severity: normal


Hi,

I had some trouble getting the debchanglog.vim ftplugin to work with
NERD_tree plugin. The procedure to reproduce the issue is the following:

1. open NERD_tree
2. open a changelog file
3. change active window back to NERD_tree
4. try to open another file -> you get the following error message:
   Vim(aunmenu):E329: No menu "Changelog"

The attached patches solves this issue by running the aunmenu command
silently.

Greetings,

Jan Christoph

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35+ (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

vim-runtime depends on no packages.

Versions of packages vim-runtime recommends:
ii  vim-gtk [vim 2:7.3.000+hg~ee53a39d5896-1 Vi IMproved - enhanced vi editor -
ii  vim-tiny     2:7.3.000+hg~ee53a39d5896-1 Vi IMproved - enhanced vi editor -

vim-runtime suggests no packages.

-- no debconf information
-------------- next part --------------
--- debchangelog.vim.orig	2010-07-10 10:00:14.000000000 +0200
+++ debchangelog.vim	2010-07-10 10:00:36.000000000 +0200
@@ -228,7 +228,7 @@
 
 augroup changelogMenu
 au BufEnter * if &filetype == "debchangelog" | call <SID>MakeMenu() | endif
-au BufLeave * if &filetype == "debchangelog" | aunmenu Changelog | endif
+au BufLeave * if &filetype == "debchangelog" | silent! aunmenu Changelog | endif
 augroup END
 
 " }}}


More information about the pkg-vim-maintainers mailing list