# HG changeset patch # User Ludovic Chabant # Date 1323736659 28800 # Node ID 298261c939b3b8970422ea2ea242ccabfde3b8c9 # Parent a7bf37a97a1b338d05bfc229595279c94470f045 Updated documentation. diff -r a7bf37a97a1b -r 298261c939b3 doc/lawrencium.txt --- a/doc/lawrencium.txt Mon Dec 12 15:59:15 2011 -0800 +++ b/doc/lawrencium.txt Mon Dec 12 16:37:39 2011 -0800 @@ -1,52 +1,89 @@ *lawrencium.txt* Mercurial wrapper for VIM -Author: Ludovic Chabant -License: Same terms as Vim itself (see |license|) + + LAWRENCIUM REFERENCE MANUAL + by Ludovic Chabant + + + *lawrencium* -This plugin is only available if 'compatible' is not set. +1. Introduction |lawrencium-intro| +2. Commands |lawrencium-commands| -INTRODUCTION *lawrencium* + +============================================================================= +1. Introduction *lawrencium-intro* When a file from a Mercurial repository is open in a buffer, that buffer gets new commands defined. -COMMANDS *lawrencium-commands* +This plugin is only available if 'compatible' is not set. + +Grab the latest version or report a bug on BitBucket: + +http://bitbucket.org/ludovicchabant/vim-lawrencium + + + +============================================================================= +2. Commands *lawrencium-commands* All commands defined by |lawrencium| are local to each buffer. - *lawrencium-:Hg* + *:Hg* :Hg {args} Run an arbitrary Mercurial command. Similar to :!hg [args] but the '--repository' is automatically specified with the root of the repository the current file belongs to. - *lawrencium-:Hg!* + *:Hg!* :Hg! {args} Like |:Hg|, but the output of the command is placed in a temp file and edited in the |preview-window|. - *lawrencium-:Hgcd* + *:Hgcd* :Hgcd[!] {path} |:cd| relative to the root of the repository. - *lawrencium-:Hglcd* + *:Hglcd* :Hglcd[!] {path} |:lcd| relative to the root of the repository. - *lawrencium-:Hgedit* + *:Hgedit* :Hgedit {file} |:edit| {file} relative to the root of the repository. - *lawrencium-:Hgedit!* + *:Hgedit!* :Hgedit! {file} |:edit!| {file} relative to the root of the repository. - *lawrencium-:Hgstatus* + *:Hgstatus* :Hgstatus Shows the output of 'hg status' in the |preview-window|. - You can navigate to the next/previous file with "n"/"p". + You can navigate to the next/previous file with + and , open a file with , diff the local file + with the parent revision with and , + depending on whether you want a horizontal or vertical + split window. + + *:Hgdiff* +:Hgdiff Diffs the current file against its parent revision. + + *:Hgdiff_f* +:Hgdiff {revspec} Diffs the current file against the specified revision. + + *:Hgvdiff* +:Hgvdiff Same as |:Hgdiff| but uses a vertical split. + + *:Hgvdiff_f* +:Hgvdiff {revspec} Same as |:Hgdiff_f| but uses a vertical split. + + *:Hgcommit* +:Hgcommit Opens a new window to edit a commit message into a + temporary file and, upon quitting the buffer, if that + file has been written to, commit the current changes + to the repository. + + *:Hgvcommit* +:Hgvcommit Same as |:Hgcommit| but uses a vertical split to edit + the commit message. -ABOUT *lawrencium-about* - -Grab the latest version or report a bug on BitBucket: - -http://bitbucket.org/ludovicchabant/lawrencium vim:tw=78:et:ft=help:norl: