logo       

ANN: darcs.vim: a vim plugin to work with darcs: msg#00437

Subject: ANN: darcs.vim: a vim plugin to work with darcs
Hello,

I only recently began using darcs but instantly liked it. Since I also love
Vim, I made a rudimentary plugin for working with darcs from within GVim.
The feature-set is somewhat limited, but covers about 90% of the things I
do with darcs.

Features:
=========
1. Committing from within GVim. When the user presses \dkc, the plugin
   opens a "commit console" which contains a list of the hunks which darcs
   sees as the current changes. The user can press Y/N/J/K/F/S just like in
   darcs to accept/reject individual hunks. The user also enters the commit
   log message in that same window (by pressing L). After the user is done
   processing the hunks, he can press R which makes the plugin record the
   selected changes with the given log message.

2. Diffing to the last recorded version. Pressing \dkv makes the plugin
   vertically diffsplit the GVim window and show the changes between the
   current state and the last recorded state. This operation is "cheap"
   because it uses the file from _darcs/current/ corresponding to the
   current file.

3. Diffing between two recorded versions: Pressing \dki makes the plugin
   open an "interactive diff console". In this window, the user can
   navigate to the next or previous patch using j/k. The user selects two
   patches, the "from" patch and the "to" patch by pressing 'f' and 't'
   while on two patches. After the user is done, he presses 'g' (go). The
   plugin then opens two vertically split windows along the top which shows
   the difference between the two windows. If the user chooses just one
   file (using either 'f' or 't'), then the plugin shows the changes from
   that patch to the current state.

Installation:
=============
Drop the darcs.vim file attached into the ~/.vim/plugin directory.
Requires vim version 6.2+. I have tested it to work on both linux and
windows. However, on windows, you will require the cygwin environment.

Srinath

PS: This plugin is presently in beta state. Report bugs to me.

Attachment: darcs.vim
Description: application/octetstream

_______________________________________________
darcs-users mailing list
darcs-users@xxxxxxxxx
http://www.abridgegame.org/mailman/listinfo/darcs-users
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe