Mercurial > vim-lawrencium
annotate doc/lawrencium.txt @ 13:298261c939b3
Updated documentation.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 12 Dec 2011 16:37:39 -0800 |
parents | 1da613c13d81 |
children | 01932a36df03 |
rev | line source |
---|---|
0 | 1 *lawrencium.txt* Mercurial wrapper for VIM |
2 | |
13 | 3 |
4 LAWRENCIUM REFERENCE MANUAL | |
5 by Ludovic Chabant | |
6 | |
7 | |
8 *lawrencium* | |
0 | 9 |
13 | 10 1. Introduction |lawrencium-intro| |
11 2. Commands |lawrencium-commands| | |
0 | 12 |
13 | 13 |
14 ============================================================================= | |
15 1. Introduction *lawrencium-intro* | |
0 | 16 |
17 When a file from a Mercurial repository is open in a buffer, that buffer gets | |
18 new commands defined. | |
19 | |
13 | 20 This plugin is only available if 'compatible' is not set. |
21 | |
22 Grab the latest version or report a bug on BitBucket: | |
23 | |
24 http://bitbucket.org/ludovicchabant/vim-lawrencium | |
25 | |
26 | |
27 | |
28 ============================================================================= | |
29 2. Commands *lawrencium-commands* | |
0 | 30 |
31 All commands defined by |lawrencium| are local to each buffer. | |
32 | |
13 | 33 *:Hg* |
6
1da613c13d81
Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
34 :Hg {args} Run an arbitrary Mercurial command. Similar to :!hg |
0 | 35 [args] but the '--repository' is automatically |
36 specified with the root of the repository the current | |
37 file belongs to. | |
38 | |
13 | 39 *:Hg!* |
6
1da613c13d81
Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
40 :Hg! {args} Like |:Hg|, but the output of the command is placed in |
0 | 41 a temp file and edited in the |preview-window|. |
42 | |
13 | 43 *:Hgcd* |
6
1da613c13d81
Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
44 :Hgcd[!] {path} |:cd| relative to the root of the repository. |
0 | 45 |
13 | 46 *:Hglcd* |
6
1da613c13d81
Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
47 :Hglcd[!] {path} |:lcd| relative to the root of the repository. |
1da613c13d81
Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
48 |
13 | 49 *:Hgedit* |
6
1da613c13d81
Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
50 :Hgedit {file} |:edit| {file} relative to the root of the repository. |
1da613c13d81
Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
51 |
13 | 52 *:Hgedit!* |
6
1da613c13d81
Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
53 :Hgedit! {file} |:edit!| {file} relative to the root of the repository. |
0 | 54 |
13 | 55 *:Hgstatus* |
0 | 56 :Hgstatus Shows the output of 'hg status' in the |
57 |preview-window|. | |
13 | 58 You can navigate to the next/previous file with <C-N> |
59 and <C-P>, open a file with <cr>, diff the local file | |
60 with the parent revision with <C-D> and <C-V>, | |
61 depending on whether you want a horizontal or vertical | |
62 split window. | |
63 | |
64 *:Hgdiff* | |
65 :Hgdiff Diffs the current file against its parent revision. | |
66 | |
67 *:Hgdiff_f* | |
68 :Hgdiff {revspec} Diffs the current file against the specified revision. | |
69 | |
70 *:Hgvdiff* | |
71 :Hgvdiff Same as |:Hgdiff| but uses a vertical split. | |
72 | |
73 *:Hgvdiff_f* | |
74 :Hgvdiff {revspec} Same as |:Hgdiff_f| but uses a vertical split. | |
75 | |
76 *:Hgcommit* | |
77 :Hgcommit Opens a new window to edit a commit message into a | |
78 temporary file and, upon quitting the buffer, if that | |
79 file has been written to, commit the current changes | |
80 to the repository. | |
81 | |
82 *:Hgvcommit* | |
83 :Hgvcommit Same as |:Hgcommit| but uses a vertical split to edit | |
84 the commit message. | |
0 | 85 |
86 | |
87 | |
88 | |
89 vim:tw=78:et:ft=help:norl: |