annotate doc/lawrencium.txt @ 31:3a0f7bb6ea64

Hgstatus window improvements and bug fixes: - `addremove` command replaces `add`, and can run on a selection range. - Lawrencium commands are available (along with in the diff windows). - Default mappings are optional. - Updated documentation.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 25 Dec 2011 22:40:30 -0800
parents 01932a36df03
children cfc15ff67aaf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
1 *lawrencium.txt* Mercurial wrapper for VIM
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
2
13
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
3
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
4 LAWRENCIUM REFERENCE MANUAL
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
5 by Ludovic Chabant
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
6
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
7
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
8 *lawrencium*
0
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
9
13
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
10 1. Introduction |lawrencium-intro|
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
11 2. Commands |lawrencium-commands|
31
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
12 3. Status Window |lawrencium-status-window|
0
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
13
13
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
14
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
15 =============================================================================
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
16 1. Introduction *lawrencium-intro*
0
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
17
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
18 When a file from a Mercurial repository is open in a buffer, that buffer gets
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
19 new commands defined.
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
20
13
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
21 This plugin is only available if 'compatible' is not set.
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
22
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
23 Grab the latest version or report a bug on BitBucket:
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
24
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
25 http://bitbucket.org/ludovicchabant/vim-lawrencium
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
26
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
27
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
28
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
29 =============================================================================
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
30 2. Commands *lawrencium-commands*
0
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
31
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
32 All commands defined by |lawrencium| are local to each buffer.
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
33
13
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
34 *:Hg*
6
1da613c13d81 Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents: 0
diff changeset
35 :Hg {args} Run an arbitrary Mercurial command. Similar to :!hg
0
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
36 [args] but the '--repository' is automatically
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
37 specified with the root of the repository the current
20
01932a36df03 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 13
diff changeset
38 file belongs to, and it will auto-complete any
01932a36df03 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 13
diff changeset
39 standard command or option.
0
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
40
13
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
41 *:Hg!*
6
1da613c13d81 Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents: 0
diff changeset
42 :Hg! {args} Like |:Hg|, but the output of the command is placed in
0
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
43 a temp file and edited in the |preview-window|.
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
44
13
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
45 *:Hgcd*
6
1da613c13d81 Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents: 0
diff changeset
46 :Hgcd[!] {path} |:cd| relative to the root of the repository.
0
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
47
13
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
48 *:Hglcd*
6
1da613c13d81 Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents: 0
diff changeset
49 :Hglcd[!] {path} |:lcd| relative to the root of the repository.
1da613c13d81 Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents: 0
diff changeset
50
13
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
51 *:Hgedit*
6
1da613c13d81 Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents: 0
diff changeset
52 :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
53
13
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
54 *:Hgedit!*
6
1da613c13d81 Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents: 0
diff changeset
55 :Hgedit! {file} |:edit!| {file} relative to the root of the repository.
0
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
56
13
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
57 *:Hgstatus*
0
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
58 :Hgstatus Shows the output of 'hg status' in the
31
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
59 |preview-window|. Some extra-commands, along with some
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
60 default mappins, are available in this window. See
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
61 |lawrencium-status-window|.
13
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
62
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
63 *:Hgdiff*
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
64 :Hgdiff Diffs the current file against its parent revision.
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
65
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
66 *:Hgdiff_f*
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
67 :Hgdiff {revspec} Diffs the current file against the specified revision.
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
68
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
69 *:Hgvdiff*
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
70 :Hgvdiff Same as |:Hgdiff| but uses a vertical split.
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
71
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
72 *:Hgvdiff_f*
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
73 :Hgvdiff {revspec} Same as |:Hgdiff_f| but uses a vertical split.
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
74
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
75 *:Hgcommit*
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
76 :Hgcommit Opens a new window to edit a commit message into a
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
77 temporary file and, upon quitting the buffer, if that
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
78 file has been written to, commit the current changes
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
79 to the repository.
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
80
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
81 *:Hgvcommit*
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
82 :Hgvcommit Same as |:Hgcommit| but uses a vertical split to edit
298261c939b3 Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents: 6
diff changeset
83 the commit message.
0
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
84
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
85
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
86
31
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
87 =============================================================================
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
88 3. Status Window *lawrencium-status-window*
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
89
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
90 The `hg status` window opened by Lawrencium has a few special commands
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
91 defined in it. Also, unless the global `lawrencium_define_mappings` is set to
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
92 `0`, some commands are mapped to keyboard shortcuts, as detailed in the
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
93 following descriptions.
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
94
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
95
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
96 *:Hgstatusedit*
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
97 :Hgstatusedit Open the file mentioned on the current line.
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
98 Mapped to <cr>.
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
99
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
100 *:Hgstatusaddremove*
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
101 :Hgstatusaddremove Run `hg addremove` on the file mentioned on the
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
102 current line, or on the lines currently selected in
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
103 visual selection mode (see |visual-start|).
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
104 Mapped to <C-A>.
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
105
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
106 *:Hgstatusdiff*
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
107 :Hgstatusdiff Open a diff window on the file mentioned on the
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
108 current line, between the working directory version
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
109 and the parent revision version. Similar to running
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
110 |:Hgdiff| on that file.
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
111 Mapped to <C-D>.
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
112
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
113 *:Hgstatusvdiff*
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
114 :Hgstatusvdiff Similar to |:Hgstatusdiff|, but use a vertical split.
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
115 Similar to running |:Hgvdiff| on that file.
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
116 Mapped to <C-V>.
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
117
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
118 *:Hgstatusrefresh*
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
119 :Hgstatusrefresh Refreshes the status window by running `hg status`
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
120 again.
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
121 Mapped to <C-R>.
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
122
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
123 *lawrencium-status-mappings*
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
124 A few other mappings are available in the status window:
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
125
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
126 <C-N> Jump to the next filename.
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
127 <C-P> Jump to the previous filename.
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
128 q Quit the status window.
3a0f7bb6ea64 Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents: 20
diff changeset
129
0
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
130
0a5b490dc35d Initial commit
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
131 vim:tw=78:et:ft=help:norl: