r993 - in /trunk/packages/vim-scripts: debian/ debian/vim-registry/ html/ plugin/
zack at users.alioth.debian.org
zack at users.alioth.debian.org
Sun Jul 22 16:59:27 UTC 2007
Author: zack
Date: Sun Jul 22 16:59:27 2007
New Revision: 993
URL: http://svn.debian.org/wsvn/pkg-vim/?sc=1&rev=993
Log:
- added: lbdbq (Closes: #430685) ... which now quotes expanded names to
avoid dangerous characters like commas (Closes: #431820)
Added:
trunk/packages/vim-scripts/html/plugin_lbdbq.vim.html
trunk/packages/vim-scripts/plugin/lbdbq.vim
Modified:
trunk/packages/vim-scripts/debian/changelog
trunk/packages/vim-scripts/debian/copyright
trunk/packages/vim-scripts/debian/vim-registry/vim-scripts.yaml
trunk/packages/vim-scripts/debian/vim-scripts.status
trunk/packages/vim-scripts/html/index.html
trunk/packages/vim-scripts/html/plugin_AlignPlugin.vim.html
trunk/packages/vim-scripts/html/plugin_themes.vim.html
Modified: trunk/packages/vim-scripts/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/debian/changelog?rev=993&op=diff
==============================================================================
--- trunk/packages/vim-scripts/debian/changelog (original)
+++ trunk/packages/vim-scripts/debian/changelog Sun Jul 22 16:59:27 2007
@@ -4,10 +4,12 @@
- upgraded: supertab (the version we used to ship was superseded by a new
plugin, also register it as an addon which was missing)
(Closes: #431148)
+ - added: lbdbq (Closes: #430685) ... which now quotes expanded names to
+ avoid dangerous characters like commas (Closes: #431820)
* debian/patches/
- add disabledby-supertab, enables blacklisting of supertab
- -- Stefano Zacchiroli <zack at debian.org> Sun, 22 Jul 2007 18:30:09 +0200
+ -- Stefano Zacchiroli <zack at debian.org> Sun, 22 Jul 2007 18:50:05 +0200
vim-scripts (7.1.2) unstable; urgency=low
Modified: trunk/packages/vim-scripts/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/debian/copyright?rev=993&op=diff
==============================================================================
--- trunk/packages/vim-scripts/debian/copyright (original)
+++ trunk/packages/vim-scripts/debian/copyright Sun Jul 22 16:59:27 2007
@@ -152,6 +152,11 @@
url: http://www.vim.org/scripts/script.php?script_id=1643
license: BSD, see /usr/share/common-licenses/BSD
+script: plugin/lbdbq.vim
+author: Stefano Zacchiroli < zack at bononia.it >
+url: http://www.vim.org/scripts/script.php?script_id=1757
+license: GNU GPL, version 3 or above
+
--
Licenses referenced above
Modified: trunk/packages/vim-scripts/debian/vim-registry/vim-scripts.yaml
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/debian/vim-registry/vim-scripts.yaml?rev=993&op=diff
==============================================================================
--- trunk/packages/vim-scripts/debian/vim-registry/vim-scripts.yaml (original)
+++ trunk/packages/vim-scripts/debian/vim-registry/vim-scripts.yaml Sun Jul 22 16:59:27 2007
@@ -364,3 +364,10 @@
files:
- plugin/supertab.vim
---
+addon: lbdbq
+description: "expand names to email addresses via lbdb queries"
+basedir: /usr/share/vim-scripts/
+disabledby: "let loaded_lbdbq = 1"
+files:
+ - plugin/lbdbq.vim
+---
Modified: trunk/packages/vim-scripts/debian/vim-scripts.status
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/debian/vim-scripts.status?rev=993&op=diff
==============================================================================
--- trunk/packages/vim-scripts/debian/vim-scripts.status (original)
+++ trunk/packages/vim-scripts/debian/vim-scripts.status Sun Jul 22 16:59:27 2007
@@ -332,6 +332,17 @@
disabledby: let loaded_supertab = 1
version: 0.43
+script_name: plugin/lbdbq.vim
+addon: lbdbq
+description: expand names to email addresses via lbdb queries
+script_url: http://www.vim.org/scripts/script.php?script_id=1757
+author: Stefano Zacchiroli
+author_url: http://www.vim.org/account/profile.php?user_id=6957
+email: zack at bononia.it
+license: GNU GPL, version 3 or above
+disabledby: let loaded_lbdbq = 1
+version: 0.3
+
--
Licenses referenced above
Modified: trunk/packages/vim-scripts/html/index.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/index.html?rev=993&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/index.html (original)
+++ trunk/packages/vim-scripts/html/index.html Sun Jul 22 16:59:27 2007
@@ -28,6 +28,7 @@
<li><a href="plugin_cvsmenu.vim.html">plugin/cvsmenu.vim.html</a></li>
<li><a href="plugin_gnupg.vim.html">plugin/gnupg.vim.html</a></li>
<li><a href="plugin_info.vim.html">plugin/info.vim.html</a></li>
+ <li><a href="plugin_lbdbq.vim.html">plugin/lbdbq.vim.html</a></li>
<li><a href="plugin_minibufexpl.vim.html">plugin/minibufexpl.vim.html</a></li>
<li><a href="plugin_project.vim.html">plugin/project.vim.html</a></li>
<li><a href="plugin_sokoban.vim.html">plugin/sokoban.vim.html</a></li>
@@ -43,7 +44,7 @@
<li><a href="syntax_CVSAnnotate.vim.html">syntax/CVSAnnotate.vim.html</a></li>
</ul>
<p>
- Page generated on Sun, 22 Jul 2007 18:29:48 +0200
+ Page generated on Sun, 22 Jul 2007 18:57:31 +0200
.
</p>
</body>
Modified: trunk/packages/vim-scripts/html/plugin_AlignPlugin.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_AlignPlugin.vim.html?rev=993&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_AlignPlugin.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_AlignPlugin.vim.html Sun Jul 22 16:59:27 2007
@@ -154,7 +154,7 @@
<td class="lightbg"><b> script karma </b></td>
<td>
Rating <b>822/254</b>,
- Downloaded by 8364 </td>
+ Downloaded by 8365 </td>
</tr>
</table>
<p>
Added: trunk/packages/vim-scripts/html/plugin_lbdbq.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_lbdbq.vim.html?rev=993&op=file
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_lbdbq.vim.html (added)
+++ trunk/packages/vim-scripts/html/plugin_lbdbq.vim.html Sun Jul 22 16:59:27 2007
@@ -1,0 +1,282 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+
+<head>
+ <link rel="Stylesheet" type="text/css" href="/css/style.css" >
+ <title>lbdbq - query lbdb from Vim : vim online</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+ <meta name="KEYWORDS" content="Vim, Vi IMproved, text editor, home, documentation, tips, scripts, news">
+ <link rel="shortcut icon" type="image/x-icon" href="/images/vim_shortcut.ico">
+</head>
+
+<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#ffffff">
+
+<!-- HEADER, SPONSOR IMAGE, VIM IMAGE AND BOOK AD -->
+<table width="100%" cellpadding="0" cellspacing="0" border="0" bordercolor="red">
+ <tr>
+ <td colspan="4" class="lightbg"><img src="/images/spacer.gif" width="1" height="5" alt=""></td>
+ </tr>
+ <tr>
+ <td class="lightbg"> </td>
+ <td class="lightbg" align="left"><a href="/sponsor/index.php"><img src="/images/sponsorvim.gif" alt="sponsor Vim development" border="0"></a></td>
+ <td class="lightbg" align="center"><a href="/index.php"><img src="/images/vim_header.gif" border="0" alt="Vim logo"></a></td>
+ <td class="lightbg" align="right"><a href="http://iccf-holland.org/click5.html"><img src="/images/buyhelplearn.gif" alt="Vim Book Ad" border="0"></a></td>
+ </tr>
+ <tr>
+ <td colspan="4" class="lightbg"><img src="/images/spacer.gif" width="1" height="5" alt=""></td>
+ </tr>
+ <tr>
+ <td colspan="4" class="darkbg"><img src="/images/spacer.gif" width="1" height="10" alt=""></td>
+ </tr>
+</table>
+<!-- THE PAGE BODY: BETWEEN HEADER AND FOOTER -->
+
+<table cellpadding="0" cellspacing="0" border="0" width="100%">
+ <col width="180">
+ <col width="1">
+
+ <tr valign="top">
+ <td class="sidebar">
+ <table width="180" cellpadding="4" cellspacing="0" border="0">
+ <tr valign="top">
+ <td class="sidebar">
+
+<!-- INCLUDE THE PAGE NAVIGATION -->
+<table width="100%" cellpadding="0" cellspacing="0" border="0" bordercolor="red">
+ <tr>
+ <td><small>not logged in (<a href="/login.php">login</a>)</small></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>
+ </tr>
+ <tr>
+ <td class="darkbg"><img src="/images/spacer.gif" alt='' border="0" height="3"></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="2"></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/index.php">Home</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/search.php">Search</a></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
+ </tr>
+ <tr>
+ <td class="checker"><img src="/images/spacer.gif" alt='' border="0" height="1"></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/about.php">About Vim</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/community.php">Community</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/news/news.php">News</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/sponsor/index.php">Sponsoring</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/trivia.php">Trivia</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/docs.php">Documentation</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/download.php">Download</a></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
+ </tr>
+ <tr>
+ <td class="checker"><img src="/images/spacer.gif" alt='' border="0" height="1"></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/scripts/index.php">Scripts</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/tips/index.php">Tips</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/account/index.php">My Account</a></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
+ </tr>
+ <tr>
+ <td class="checker"><img src="/images/spacer.gif" alt='' border="0" height="1"></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/huh.php">Site Help</a></td>
+ </tr>
+</table>
+
+ <table width="172" cellpadding="0" cellspacing="0" border="0">
+ <tr><td><img src="/images/spacer.gif" alt="" border="0" width="1" height="8"></td></tr>
+ <tr><td class="darkbg"><img src="/images/spacer.gif" width="1" height="3" alt=""></td></tr>
+ </table>
+ <br>
+
+<!-- INCLUDE THE PAGE SIDEBAR TEXT -->
+
+
+ </td>
+ </tr>
+ </table>
+ </td>
+
+ <td class="darkbg"><img src="/images/spacer.gif" width="1" height="1" border="0" alt=""><br></td>
+ <td>
+ <table width="100%" cellpadding="10" cellspacing="0" border="0" bordercolor="red">
+ <tr>
+ <td valign="top">
+
+<span class="txth1">lbdbq : query lbdb from Vim</span>
+
+<br>
+<br>
+
+<!-- karma table -->
+<table cellpadding="4" cellspacing="0" border="1" bordercolor="#000066">
+<tr>
+ <td class="lightbg"><b> script karma </b></td>
+ <td>
+ Rating <b>12/3</b>,
+ Downloaded by 151 </td>
+</tr>
+</table>
+<p>
+
+<table cellspacing="0" cellpadding="0" border="0">
+<tr><td class="prompt">created by</td></tr>
+<tr><td><a href="/account/profile.php?user_id=6957">Stefano Zacchiroli</a></td></tr>
+<tr><td> </td></tr>
+<tr><td class="prompt">script type</td></tr>
+<tr><td>utility</td></tr>
+<tr><td> </td></tr>
+<tr><td class="prompt">description</td></tr>
+<tr><td>Functions and various mode mappings for querying lbdb (<a target="_blank" href="http://www.spinnaker.de/lbdb/">http://www.spinnaker.de/lbdb/</A>) when using Vim to edit mails and mail headers, for example from Mutt (<a target="_blank" href="http://www.mutt.org">http://www.mutt.org</A>).
<br>
<br>Using this utility lines like the following appearing in a Vim buffer:
<br> To: name surname, name2 surname2
<br>can be automatically converted to lines like
<br> To: My Friend <foo at example.com>, My Other Friend <bar at example.com>
<br>by querying lbdb.
<br>
<br>When the expansion of a given contact is ambiguous (i.e. it corresponds to more than one contact) the user is interactively asked to choose among them.
<br>
<br>The utility can be used in various ways:
<br>- in normal mode typing <Leader>lb: the current recipient line will be expanded (i.e. all expandable short names will be expanded to full name/address pairs)
<br>- in insert mode typing <Leader>lb: same as above but without leaving insert mode
<br>- in line visual mode typing <Leader>lb: same as above but all the visually selected line will be subject to expansion
<br>- in visual mode typing <Leader>lb: only the short names contained in the visually selected text will be subject to expansion
<br>
<br>RELATED SCRIPTS
<br>
<br>I'm (now) aware that <a href="/scripts/script.php?script_id=388">vimscript #388</a> is older than this script of mine and provide similar features. But this script is strictly more powerful (YMMV of course). For example it works in various modes (visual/insert/normal/...), is able to substitute more contacts at once, and takes into account the semantics of recipient lines. E.g.: if you try to expand "name surname" (without double quotes) the plugin looks up for both of them, while <a href="/scripts/script.php?script_id=388">vimscript #388</a> will look up only for the part under the courses, leading more likely to ambiguous answers.</td></tr>
+<tr><td> </td></tr>
+<tr><td class="prompt">install details</td></tr>
+<tr><td>A matter of taste. Personally I drop lbdbq.vim in my ~/.vim/ directory and from ~/.vim/after/ftplugin/mail.vim I do
<br> source ~/.vim/lbdbq.vim
<br>If you don't mind having this plugin always loaded just drop it in ~/.vim/plugin/</td></tr>
+<tr><td> </td></tr>
+</table>
+
+<!-- rating table -->
+<form name="rating">
+<input type="hidden" name="script_id" value="1757">
+<table cellpadding="4" cellspacing="0" border="1" bordercolor="#000066">
+<tr>
+ <td class="lightbg"><b>rate this script</b></td>
+ <td valign="middle">
+ <input type="radio" name="rating" value="life_changing">Life Changing
+ <input type="radio" name="rating" value="helpful">Helpful
+ <input type="radio" name="rating" value="unfulfilling">Unfulfilling
+ <input type="submit" value="rate">
+ </td>
+</tr>
+</table>
+</form>
+<span class="txth2">script versions</span> (<a href="add_script_version.php?script_id=1757">upload new version</a>)
+<p>
+Click on the package to download.
+<p>
+
+<table cellspacing="2" cellpadding="4" border="0" width="100%">
+<tr class='tableheader'>
+ <th valign="top">package</th>
+ <th valign="top">script version</th>
+ <th valign="top">date</th>
+ <th valign="top">Vim version</th>
+ <th valign="top">user</th>
+ <th valign="top">release notes</th>
+</tr>
+<tr>
+ <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=7393">lbdbq.vim</a></td>
+ <td class="rowodd" valign="top" nowrap><b>0.3</b></td>
+ <td class="rowodd" valign="top" nowrap><i>2007-07-22</i></td>
+ <td class="rowodd" valign="top" nowrap>7.0</td>
+ <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=6957">Stefano Zacchiroli</a></i></td>
+ <td class="rowodd" valign="top" width="2000">- quote the name part of returned addresses, so that names with (e.g.) commas does not break the headers
<br>- change license to GPL v3 or above</td>
+</tr>
+<tr>
+ <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=6594">lbdbq.vim</a></td>
+ <td class="roweven" valign="top" nowrap><b>0.2</b></td>
+ <td class="roweven" valign="top" nowrap><i>2007-01-08</i></td>
+ <td class="roweven" valign="top" nowrap>7.0</td>
+ <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=6957">Stefano Zacchiroli</a></i></td>
+ <td class="roweven" valign="top" width="2000">- bugfix for lines which are continuation of RFC822 fields
<br>- added URL field in the plugin
<br>- less stupid vmappings (i.e. more efficient)
<br>- normalize spaces when expanding contacts
<br>- silent mappings</td>
+</tr>
+</table>
+<!-- finish off the framework -->
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+
+<!-- END OF THE PAGE BODY: BETWEEN HEADER AND FOOTER -->
+
+<table width="100%" cellpadding="0" cellspacing="0" border="0" bordercolor="red">
+ <tr><td colspan="4"><img src="/images/spacer.gif" width="1" height="5" alt=""></td></tr>
+ <tr><td colspan="4" bgcolor="#000000"><img src="/images/spacer.gif" height="2" width="1" alt=""></td></tr>
+ <tr><td colspan="4"><img src="/images/spacer.gif" width="1" height="5" alt=""></td></tr>
+ <tr>
+ <td><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
+
+ <td align="left" valign="top"><small>
+ If you have questions or remarks about this site, visit the
+ <a href="http://vimonline.sf.net">vimonline development</a> pages.
+ Please use this site responsibly.
+ <br>
+
+ Questions about <a href="http://www.vim.org/about.php">Vim</a> should go
+ to vim at vim.org after searching
+ <a href="http://groups.yahoo.com/group/vim">the archive</a>.
+ Help Bram <a href="http://iccf-holland.org/">help Uganda</a>.
+ </small>
+
+
+
+ <!-- Start of StatCounter Code -->
+ <script type="text/javascript" language="javascript">
+ var sc_project=1417324;
+ var sc_invisible=1;
+ var sc_partition=11;
+ var sc_security="d41633bc";
+ </script>
+
+ <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c12.statcounter.com/counter.php?sc_project=1417324&java=0&security=d41633bc&invisible=0" alt="free tracking" border="0"></a> </noscript>
+ <!-- End of StatCounter Code -->
+ </td>
+
+ <td align="right" valign="top">
+ <a href="http://www.webconceptgroup.net"><img src="/images/logo_sponsor_wcg.jpg" width="131" height="30" border="0" alt="Sponsored by Web Concept Group Inc."></a>
+ <a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=8&type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a>
+ </td>
+
+ <td><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
+ </tr>
+
+
+ <tr><td colspan="4"><img src="/images/spacer.gif" width="1" height="5" alt=""></td>
+
+ </tr>
+</table>
+
+</body>
+</html>
+
Modified: trunk/packages/vim-scripts/html/plugin_themes.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_themes.vim.html?rev=993&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_themes.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_themes.vim.html Sun Jul 22 16:59:27 2007
@@ -1,0 +1,298 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+
+<head>
+ <link rel="Stylesheet" type="text/css" href="/css/style.css" >
+ <title>Colors Sampler Pack - [full update] All the color schemes on vim.sf.net (now with organized menu) : vim online</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+ <meta name="KEYWORDS" content="Vim, Vi IMproved, text editor, home, documentation, tips, scripts, news">
+ <link rel="shortcut icon" type="image/x-icon" href="/images/vim_shortcut.ico">
+</head>
+
+<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#ffffff">
+
+<!-- HEADER, SPONSOR IMAGE, VIM IMAGE AND BOOK AD -->
+<table width="100%" cellpadding="0" cellspacing="0" border="0" bordercolor="red">
+ <tr>
+ <td colspan="4" class="lightbg"><img src="/images/spacer.gif" width="1" height="5" alt=""></td>
+ </tr>
+ <tr>
+ <td class="lightbg"> </td>
+ <td class="lightbg" align="left"><a href="/sponsor/index.php"><img src="/images/sponsorvim.gif" alt="sponsor Vim development" border="0"></a></td>
+ <td class="lightbg" align="center"><a href="/index.php"><img src="/images/vim_header.gif" border="0" alt="Vim logo"></a></td>
+ <td class="lightbg" align="right"><a href="http://iccf-holland.org/click5.html"><img src="/images/buyhelplearn.gif" alt="Vim Book Ad" border="0"></a></td>
+ </tr>
+ <tr>
+ <td colspan="4" class="lightbg"><img src="/images/spacer.gif" width="1" height="5" alt=""></td>
+ </tr>
+ <tr>
+ <td colspan="4" class="darkbg"><img src="/images/spacer.gif" width="1" height="10" alt=""></td>
+ </tr>
+</table>
+<!-- THE PAGE BODY: BETWEEN HEADER AND FOOTER -->
+
+<table cellpadding="0" cellspacing="0" border="0" width="100%">
+ <col width="180">
+ <col width="1">
+
+ <tr valign="top">
+ <td class="sidebar">
+ <table width="180" cellpadding="4" cellspacing="0" border="0">
+ <tr valign="top">
+ <td class="sidebar">
+
+<!-- INCLUDE THE PAGE NAVIGATION -->
+<table width="100%" cellpadding="0" cellspacing="0" border="0" bordercolor="red">
+ <tr>
+ <td><small>not logged in (<a href="/login.php">login</a>)</small></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>
+ </tr>
+ <tr>
+ <td class="darkbg"><img src="/images/spacer.gif" alt='' border="0" height="3"></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="2"></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/index.php">Home</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/search.php">Search</a></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
+ </tr>
+ <tr>
+ <td class="checker"><img src="/images/spacer.gif" alt='' border="0" height="1"></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/about.php">About Vim</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/community.php">Community</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/news/news.php">News</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/sponsor/index.php">Sponsoring</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/trivia.php">Trivia</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/docs.php">Documentation</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/download.php">Download</a></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
+ </tr>
+ <tr>
+ <td class="checker"><img src="/images/spacer.gif" alt='' border="0" height="1"></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/scripts/index.php">Scripts</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/tips/index.php">Tips</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/account/index.php">My Account</a></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
+ </tr>
+ <tr>
+ <td class="checker"><img src="/images/spacer.gif" alt='' border="0" height="1"></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/huh.php">Site Help</a></td>
+ </tr>
+</table>
+
+ <table width="172" cellpadding="0" cellspacing="0" border="0">
+ <tr><td><img src="/images/spacer.gif" alt="" border="0" width="1" height="8"></td></tr>
+ <tr><td class="darkbg"><img src="/images/spacer.gif" width="1" height="3" alt=""></td></tr>
+ </table>
+ <br>
+
+<!-- INCLUDE THE PAGE SIDEBAR TEXT -->
+
+
+ </td>
+ </tr>
+ </table>
+ </td>
+
+ <td class="darkbg"><img src="/images/spacer.gif" width="1" height="1" border="0" alt=""><br></td>
+ <td>
+ <table width="100%" cellpadding="10" cellspacing="0" border="0" bordercolor="red">
+ <tr>
+ <td valign="top">
+
+<span class="txth1">Colors Sampler Pack : [full update] All the color schemes on vim.sf.net (now with organized menu)</span>
+
+<br>
+<br>
+
+<!-- karma table -->
+<table cellpadding="4" cellspacing="0" border="1" bordercolor="#000066">
+<tr>
+ <td class="lightbg"><b> script karma </b></td>
+ <td>
+ Rating <b>1062/381</b>,
+ Downloaded by 20304 </td>
+</tr>
+</table>
+<p>
+
+<table cellspacing="0" cellpadding="0" border="0">
+<tr><td class="prompt">created by</td></tr>
+<tr><td><a href="/account/profile.php?user_id=2162">Robert (MetaCosm)</a></td></tr>
+<tr><td> </td></tr>
+<tr><td class="prompt">script type</td></tr>
+<tr><td>color scheme</td></tr>
+<tr><td> </td></tr>
+<tr><td class="prompt">description</td></tr>
+<tr><td>This package is simply to help people who want to look at alot of color schemes. It is all the color schemes on vim.sf.net as of March 13th, 2005 -- zipped up in a single package. There are 140 of them included. Every single theme was updated to its newest revision.
<br>
<br>Now it includes a nice little menu plugin that makes it very easy to try out the different themes.
<br>
<br>Themes->Black->BillW
<br>Themes->Grey_Brown->MetaCosm
<br>...
<br>
<br>This package was put together simply to save others time in downloading the colorschemes. If you are a scheme author and for some reason do not want your theme included, please simply add a comment that notes such, and I will remove it.</td></tr>
+<tr><td> </td></tr>
+<tr><td class="prompt">install details</td></tr>
+<tr><td>Simply unzip, and place the files in ~/.vim/plugin and ~/.vim/colors --- it will unzip with correct dir structure, so you can just unzip to ~/.vim
<br>
<br>Hope this helps you... join #vim on irc.freenode.net for all your vim help needs :)</td></tr>
+<tr><td> </td></tr>
+</table>
+
+<!-- rating table -->
+<form name="rating">
+<input type="hidden" name="script_id" value="625">
+<table cellpadding="4" cellspacing="0" border="1" bordercolor="#000066">
+<tr>
+ <td class="lightbg"><b>rate this script</b></td>
+ <td valign="middle">
+ <input type="radio" name="rating" value="life_changing">Life Changing
+ <input type="radio" name="rating" value="helpful">Helpful
+ <input type="radio" name="rating" value="unfulfilling">Unfulfilling
+ <input type="submit" value="rate">
+ </td>
+</tr>
+</table>
+</form>
+<span class="txth2">script versions</span> (<a href="add_script_version.php?script_id=625">upload new version</a>)
+<p>
+Click on the package to download.
+<p>
+
+<table cellspacing="2" cellpadding="4" border="0" width="100%">
+<tr class='tableheader'>
+ <th valign="top">package</th>
+ <th valign="top">script version</th>
+ <th valign="top">date</th>
+ <th valign="top">Vim version</th>
+ <th valign="top">user</th>
+ <th valign="top">release notes</th>
+</tr>
+<tr>
+ <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4010">ColorSamplerPack.zip</a></td>
+ <td class="rowodd" valign="top" nowrap><b>4.0</b></td>
+ <td class="rowodd" valign="top" nowrap><i>2005-03-13</i></td>
+ <td class="rowodd" valign="top" nowrap>6.0</td>
+ <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=2162">Robert (MetaCosm)</a></i></td>
+ <td class="rowodd" valign="top" width="2000">13 new colorscheme, bringing the total to 140. Now have a "recommendations" menu item, for themes I personally recommend. Added the wonderful theme InkPot in -- so now ciaranm can leave me alone :) </td>
+</tr>
+<tr>
+ <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=3405">ColorSamplerPack.zip</a></td>
+ <td class="roweven" valign="top" nowrap><b>3.0</b></td>
+ <td class="roweven" valign="top" nowrap><i>2004-09-01</i></td>
+ <td class="roweven" valign="top" nowrap>6.0</td>
+ <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=2162">Robert (MetaCosm)</a></i></td>
+ <td class="roweven" valign="top" width="2000">Every single theme corrected to ff=unix (so it is compatible on both platforms). Every single theme updated to its latest version ... and there are 6 new themes -- bringing the total to 127. Enjoy. </td>
+</tr>
+<tr>
+ <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=3093">ColorSamplerPack.zip</a></td>
+ <td class="rowodd" valign="top" nowrap><b>2.0</b></td>
+ <td class="rowodd" valign="top" nowrap><i>2004-06-03</i></td>
+ <td class="rowodd" valign="top" nowrap>6.0</td>
+ <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=2162">Robert (MetaCosm)</a></i></td>
+ <td class="rowodd" valign="top" width="2000">Massive improved menu (Thanks to Pan Shizhu!)
<br></td>
+</tr>
+<tr>
+ <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=3076">ColorSamplerPack.zip</a></td>
+ <td class="roweven" valign="top" nowrap><b>1.6</b></td>
+ <td class="roweven" valign="top" nowrap><i>2004-05-31</i></td>
+ <td class="roweven" valign="top" nowrap>6.0</td>
+ <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=2162">Robert (MetaCosm)</a></i></td>
+ <td class="roweven" valign="top" width="2000">Some of the themes were is dos format, I have changed them over to unix format. </td>
+</tr>
+</table>
+<!-- finish off the framework -->
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+
+<!-- END OF THE PAGE BODY: BETWEEN HEADER AND FOOTER -->
+
+<table width="100%" cellpadding="0" cellspacing="0" border="0" bordercolor="red">
+ <tr><td colspan="4"><img src="/images/spacer.gif" width="1" height="5" alt=""></td></tr>
+ <tr><td colspan="4" bgcolor="#000000"><img src="/images/spacer.gif" height="2" width="1" alt=""></td></tr>
+ <tr><td colspan="4"><img src="/images/spacer.gif" width="1" height="5" alt=""></td></tr>
+ <tr>
+ <td><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
+
+ <td align="left" valign="top"><small>
+ If you have questions or remarks about this site, visit the
+ <a href="http://vimonline.sf.net">vimonline development</a> pages.
+ Please use this site responsibly.
+ <br>
+
+ Questions about <a href="http://www.vim.org/about.php">Vim</a> should go
+ to vim at vim.org after searching
+ <a href="http://groups.yahoo.com/group/vim">the archive</a>.
+ Help Bram <a href="http://iccf-holland.org/">help Uganda</a>.
+ </small>
+
+
+
+ <!-- Start of StatCounter Code -->
+ <script type="text/javascript" language="javascript">
+ var sc_project=1417324;
+ var sc_invisible=1;
+ var sc_partition=11;
+ var sc_security="d41633bc";
+ </script>
+
+ <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c12.statcounter.com/counter.php?sc_project=1417324&java=0&security=d41633bc&invisible=0" alt="free tracking" border="0"></a> </noscript>
+ <!-- End of StatCounter Code -->
+ </td>
+
+ <td align="right" valign="top">
+ <a href="http://www.webconceptgroup.net"><img src="/images/logo_sponsor_wcg.jpg" width="131" height="30" border="0" alt="Sponsored by Web Concept Group Inc."></a>
+ <a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=8&type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a>
+ </td>
+
+ <td><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
+ </tr>
+
+
+ <tr><td colspan="4"><img src="/images/spacer.gif" width="1" height="5" alt=""></td>
+
+ </tr>
+</table>
+
+</body>
+</html>
+
Added: trunk/packages/vim-scripts/plugin/lbdbq.vim
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/plugin/lbdbq.vim?rev=993&op=file
==============================================================================
--- trunk/packages/vim-scripts/plugin/lbdbq.vim (added)
+++ trunk/packages/vim-scripts/plugin/lbdbq.vim Sun Jul 22 16:59:27 2007
@@ -1,0 +1,124 @@
+" Name: lbdbq.vim
+" Summary: functions and mode mappings for querying lbdb from Vim
+" Copyright: Copyright (C) 2007 Stefano Zacchiroli <zack at bononia.it>
+" License: GNU GPL version 3 or above
+" Maintainer: Stefano Zacchiroli <zack at bononia.it>
+" URL: http://www.vim.org/scripts/script.php?script_id=1757
+" Version: 0.3
+
+if exists("loaded_lbdbq")
+ finish
+endif
+let loaded_lbdbq = 1
+
+" queries lbdb with a query string and return a list of pairs:
+" [['full name', 'email'], ['full name', 'email'], ...]
+function! LbdbQuery(qstring)
+ let output = system("lbdbq '" . a:qstring . "'")
+ let results = []
+ for line in split(output, "\n")[1:] " skip first line (lbdbq summary)
+ let fields = split(line, "\t")
+ let results += [ [fields[1], fields[0]] ]
+ endfor
+ return results
+endfunction
+
+" check if a potential query string has already been expanded in a complete
+" recipient. E.g.: 'Stefano Zacchiroli <zack at bononia.it>' is a complete
+" recipient, 'stefano zacchiroli' and 'stefano' are not
+function! LbdbIsExpanded(qstring)
+ return (a:qstring =~ '^\S\+@\S\+$\|<\S\+@\S\+>$')
+endfunction
+
+function! LbdbTrim(s)
+ return substitute(a:s, '^\s*\(.\{-}\)\s*$', '\1', '')
+endfunction
+
+" expand a (short) contact given as a query string, asking interactively if
+" disambiguation is needed
+" E.g.: 'stefano zacchiroli' -> 'Stefano Zacchiroli <zack at bononia.it>'
+function! LbdbExpandContact(qstring)
+ let qstring = LbdbTrim(a:qstring)
+ if LbdbIsExpanded(qstring)
+ return qstring
+ else " try to expand (short) contact
+ let contacts = LbdbQuery(qstring)
+ let contact = []
+ if empty(contacts) " no matching (long) contact found
+ return qstring
+ elseif len(contacts) > 1 " multiple matches: disambiguate
+ echo "Choose a recipient for '" . qstring . "':"
+ let choices = []
+ let counter = 0
+ for contact in contacts
+ let choices += [ printf("%2d. %s <%s>", counter, contact[0], contact[1]) ]
+ let counter += 1
+ endfor
+ let contact = contacts[inputlist(choices)]
+ else " len(contacts) == 1, i.e. one single match
+ let contact = contacts[0]
+ endif
+ return printf("\"%s\" <%s>", escape(contact[0], '"'), contact[1])
+ endif
+endfunction
+
+" as above but support input strings composed by comma separated (short)
+" contacts
+function! LbdbExpandContacts(raw)
+ let raw = LbdbTrim(a:raw)
+ let qstrings = split(raw, '\s*,\s*')
+ let exp_strings = []
+ for qstring in qstrings
+ let exp_strings += [ LbdbExpandContact(qstring) ]
+ endfor
+ return join(exp_strings, ', ')
+endfunction
+
+" expand all (short) contacts on a given recipient line, asking interactively
+" if disambiguation is needed.
+" E.g.:
+" 'To: stefano zacchiroli, bram'
+" -> 'To: Stefano Zacchiroli <zack at bononia.it>, Bram Moolenaar <Bram at moolenaar.net>
+function! LbdbExpandRcptLine(recpt_line)
+ if a:recpt_line =~ '^\w\+:' " line is the *beginning* of a RFC822 field
+ let raw = substitute(a:recpt_line, '^\w\+:\s*', '', '')
+ let recpt_kind = substitute(a:recpt_line, '^\(\w\+\):\s*.*$', '\1', '')
+ let exp_line = recpt_kind . ': ' . LbdbExpandContacts(raw)
+ elseif a:recpt_line =~ '^\s\+' " line is the *continuation* of a RFC822 field
+ let raw = substitute(a:recpt_line, '^\s\+', '', '')
+ let lpadding = substitute(a:recpt_line, '\S.*$', '', '')
+ let exp_line = lpadding . LbdbExpandContacts(raw)
+ else
+ return a:recpt_line
+ endif
+ if a:recpt_line =~ ',\s*$'
+ let exp_line .= ','
+ endif
+ return exp_line
+endfunction
+
+function! LbdbExpandCurLine()
+ call setline(line('.'), LbdbExpandRcptLine(getline('.')))
+endfunction
+
+function! LbdbExpandVisual()
+ if visualmode() ==# 'v'
+ normal gvy
+ let raw = getreg('"')
+ let expanded = ''
+ if raw =~ ","
+ let expanded = LbdbExpandContacts(raw)
+ else
+ let expanded = LbdbExpandContact(raw)
+ endif
+ call setreg('"', expanded)
+ normal gvP
+ elseif visualmode() ==# 'V'
+ call LbdbExpandCurLine()
+ end
+endfunction
+
+nmap <silent> <LocalLeader>lb :call LbdbExpandCurLine()<RETURN>
+vmap <silent> <LocalLeader>lb :call LbdbExpandVisual()<RETURN>
+imap <silent> <LocalLeader>lb <ESC>:call LbdbExpandCurLine()<RETURN>A
+
More information about the pkg-vim-maintainers
mailing list