r749 - in /trunk/packages/vim: debian/changelog
debian/runtime/debian.vim.in patches/debchangelog.vim.diff
zack at users.alioth.debian.org
zack at users.alioth.debian.org
Thu Aug 24 21:39:28 UTC 2006
Author: zack
Date: Thu Aug 24 21:39:24 2006
New Revision: 749
URL: http://svn.debian.org/wsvn/pkg-vim/?sc=1&rev=749
Log:
moved the fold opening fix to the plugin itself
Modified:
trunk/packages/vim/debian/changelog
trunk/packages/vim/debian/runtime/debian.vim.in
trunk/packages/vim/patches/debchangelog.vim.diff
Modified: trunk/packages/vim/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/debian/changelog?rev=749&op=diff
==============================================================================
--- trunk/packages/vim/debian/changelog (original)
+++ trunk/packages/vim/debian/changelog Thu Aug 24 21:39:24 2006
@@ -13,9 +13,8 @@
/usr/share/vim/addons.
[ Stefano Zacchiroli ]
- * Added to $VIMRUNTIME/debian.vim a debchangelog filetype autogroup.
- Added to it a single command to (recursively) unfold the changelog entry
- the cursor is on when the file is opened.
+ * Modified patches/debchangelog.vim.diff so that when opening a changelog
+ the entry the cursor is on gets (recursively) unfolded.
-- Stefano Zacchiroli <zack at debian.org> Thu, 24 Aug 2006 22:59:03 +0200
Modified: trunk/packages/vim/debian/runtime/debian.vim.in
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/debian/runtime/debian.vim.in?rev=749&op=diff
==============================================================================
--- trunk/packages/vim/debian/runtime/debian.vim.in (original)
+++ trunk/packages/vim/debian/runtime/debian.vim.in Thu Aug 24 21:39:24 2006
@@ -45,12 +45,6 @@
au BufRead reportbug.* set ft=mail
au BufRead reportbug-* set ft=mail
augroup END
-
- " unfold the first entry in debian changelogs
- augroup debchangelog
- autocmd!
- autocmd FileType debchangelog normal zO
- augroup END
endif
" Set paper size from /etc/papersize if available (Debian-specific)
Modified: trunk/packages/vim/patches/debchangelog.vim.diff
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/patches/debchangelog.vim.diff?rev=749&op=diff
==============================================================================
--- trunk/packages/vim/patches/debchangelog.vim.diff (original)
+++ trunk/packages/vim/patches/debchangelog.vim.diff Thu Aug 24 21:39:24 2006
@@ -52,3 +52,12 @@
endif
return foldtext()
endfunction
+@@ -260,6 +261,8 @@
+ return '='
+ endfunction
+
++foldopen! " unfold the entry the cursor is on (usually the first one)
++
+ " }}}
+
+ " vim: set foldmethod=marker:
More information about the pkg-vim-maintainers
mailing list