Mercurial > vim-lawrencium
comparison doc/lawrencium.txt @ 46:6a4f5200d8da
`:Hg!` command changes:
- Ability to edit in a normal buffer instead of the preview window.
- Set syntax coloring according to the Mercurial command.
- Updated the documentation.
Miscellaneous cleanup.
New pretty banner in the documentation.
New "global settings" section in the documentation.
Added `graphlog` syntax file.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 07 Nov 2012 07:14:15 -0800 |
parents | fc20a265551d |
children | 85e39bdd7089 |
comparison
equal
deleted
inserted
replaced
45:ea0ae8f6af81 | 46:6a4f5200d8da |
---|---|
1 *lawrencium.txt* Mercurial wrapper for VIM | 1 *lawrencium.txt* Mercurial wrapper for VIM |
2 | 2 |
3 | |
4 LLLLLLLLLLL ~ | |
5 L:::::::::L ~ | |
6 L:::::::::L ~ | |
7 LL:::::::LL ~ | |
8 L:::::L rrrrr rrrrrrrrr ~ | |
9 L:::::L r::::rrr:::::::::r ~ | |
10 L:::::L r:::::::::::::::::r ~ | |
11 L:::::L rr::::::rrrrr::::::r ~ | |
12 L:::::L r:::::r r:::::r ~ | |
13 L:::::L r:::::r rrrrrrr ~ | |
14 L:::::L r:::::r ~ | |
15 L:::::L LLLLLLr:::::r ~ | |
16 LL:::::::LLLLLLLLL:::::Lr:::::r ~ | |
17 L::::::::::::::::::::::Lr:::::r ~ | |
18 L::::::::::::::::::::::Lr:::::r ~ | |
19 LLLLLLLLLLLLLLLLLLLLLLLLrrrrrrr ~ | |
3 | 20 |
4 LAWRENCIUM REFERENCE MANUAL | 21 LAWRENCIUM REFERENCE MANUAL |
5 by Ludovic Chabant | 22 by Ludovic Chabant |
6 | 23 |
7 | 24 |
8 *lawrencium* | 25 *lawrencium* |
9 | 26 |
10 1. Introduction |lawrencium-intro| | 27 1. Introduction |lawrencium-intro| |
11 2. Commands |lawrencium-commands| | 28 2. Commands |lawrencium-commands| |
12 3. Status Window |lawrencium-status-window| | 29 3. Status Window |lawrencium-status-window| |
30 4. Global Settings |lawrencium-global-settings| | |
13 | 31 |
14 | 32 |
15 ============================================================================= | 33 ============================================================================= |
16 1. Introduction *lawrencium-intro* | 34 1. Introduction *lawrencium-intro* |
17 | 35 |
36 [args] but the '--repository' is automatically | 54 [args] but the '--repository' is automatically |
37 specified with the root of the repository the current | 55 specified with the root of the repository the current |
38 file belongs to, and it will auto-complete any | 56 file belongs to, and it will auto-complete any |
39 standard command or option. | 57 standard command or option. |
40 | 58 |
41 Also, unless the `lawrencium_auto_cd` global is set to | 59 Also, unless the |lawrencium_auto_cd| global is set to |
42 `0`, it will temporarily set the current directory to be | 60 `0`, it will temporarily set the current directory to be |
43 the root of the repository so that auto-completed | 61 the root of the repository so that auto-completed |
44 filenames work out of the box. | 62 filenames work out of the box. |
45 | 63 |
46 *:Hg!* | 64 *:Hg!* |
47 :Hg! {args} Like |:Hg|, but the output of the command is placed in | 65 :Hg! {args} Like |:Hg|, but the output of the command is placed in |
48 a temp file and edited in the |preview-window|. | 66 a temp file and edited in the |preview-window|, unless |
67 the |lawrencium_hg_bang_edit_command| global setting | |
68 specifies that another type of window or buffer should | |
69 be used. | |
70 | |
71 Once the output is open in a buffer, Lawrencium will | |
72 try to set the file type according to the Mercurial | |
73 command that was run. See |lawrencium_hg_commands_file_types|. | |
49 | 74 |
50 *:Hgcd* | 75 *:Hgcd* |
51 :Hgcd[!] {path} |:cd| relative to the root of the repository. | 76 :Hgcd[!] {path} |:cd| relative to the root of the repository. |
52 | 77 |
53 *:Hglcd* | 78 *:Hglcd* |
99 | 124 |
100 ============================================================================= | 125 ============================================================================= |
101 3. Status Window *lawrencium-status-window* | 126 3. Status Window *lawrencium-status-window* |
102 | 127 |
103 The `hg status` window opened by Lawrencium has a few special commands | 128 The `hg status` window opened by Lawrencium has a few special commands |
104 defined in it. Also, unless the global `lawrencium_define_mappings` is set to | 129 defined in it. Also, unless the global |lawrencium_define_mappings| is set to |
105 `0`, some commands are mapped to keyboard shortcuts, as detailed in the | 130 `0`, some commands are mapped to keyboard shortcuts, as detailed in the |
106 following descriptions. | 131 following descriptions. |
107 | 132 |
108 | 133 |
109 *:Hgstatusedit* | 134 *:Hgstatusedit* |
165 <C-N> Jump to the next filename. | 190 <C-N> Jump to the next filename. |
166 <C-P> Jump to the previous filename. | 191 <C-P> Jump to the previous filename. |
167 q Quit the status window. | 192 q Quit the status window. |
168 | 193 |
169 | 194 |
195 | |
196 ============================================================================= | |
197 4. Global Settings *lawrencium-global-settings* | |
198 | |
199 The following global settings can be defined in your |vimrc| to change the | |
200 default behaviour of Lawrencium. | |
201 | |
202 *lawrencium_hg_executable* | |
203 g:lawrencium_hg_executable | |
204 Defines the executable to run when running Mercurial | |
205 commands. | |
206 Defaults to simply `hg`. | |
207 | |
208 *lawrencium_auto_cd* | |
209 g:lawrencium_auto_cd Specifies whether the current working directory should | |
210 be set to the repository's root while running |:Hg| | |
211 commands so that auto-completion works magically with | |
212 repository relative paths. | |
213 Defaults to `1`. | |
214 | |
215 *lawrencium_define_mappings* | |
216 g:lawrencium_define_mappings | |
217 Specifies whether Lawrencium should define default | |
218 keyboard shortcuts. | |
219 Defaults to `1`. | |
220 | |
221 *lawrencium_hg_bang_edit_command* | |
222 g:lawrencium_hg_bang_edit_command | |
223 Defines the Vim command to run when using the |:Hg!| | |
224 command (with the bang) in order to show the output. | |
225 | |
226 Defaults to |pedit|, which opens the output of the | |
227 command in the |preview-window|. A good alternative | |
228 is to use |edit|, to open the output in a normal | |
229 buffer. | |
230 | |
231 *lawrencium_hg_commands_file_types* | |
232 g:lawrencium_hg_commands_file_types | |
233 Defines the |file-types| that Lawrencium should use | |
234 when editing the output of |:Hg!| based on the | |
235 Mercurial command that was used. | |
236 | |
237 By default, unless overridden, the following commands | |
238 map to the following file types: | |
239 | |
240 diff diff | |
241 graphlog graphlog | |
242 | |
243 | |
170 vim:tw=78:et:ft=help:norl: | 244 vim:tw=78:et:ft=help:norl: |