Mercurial > vim-lawrencium
comparison README.markdown @ 35:c3958d29878e
Updated README file.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 28 Dec 2011 11:24:53 -0800 |
parents | fc4a778325d4 |
children | f9abc2e2aa90 |
comparison
equal
deleted
inserted
replaced
34:cfc15ff67aaf | 35:c3958d29878e |
---|---|
1 | 1 |
2 Lawrencium | 2 Lawrencium |
3 ========== | 3 ========== |
4 | 4 |
5 Lawrencium is a [Mercurial][] wrapper for [Vim][], inspired by Tim Pope's [Fugitive][]. | 5 Lawrencium is a [Mercurial][] wrapper for [Vim][], inspired by Tim Pope's [Fugitive][]. |
6 | |
7 | |
8 Disclaimer | |
9 ---------- | |
10 | |
11 This plugin is still very young, and it's also the very first one I've ever written -- I'm basically learning Vim as I go along, so bear with me. Comments and help are all welcome. | |
12 | 6 |
13 | 7 |
14 Installation | 8 Installation |
15 ------------ | 9 ------------ |
16 | 10 |
20 hg clone https://bitbucket.org/ludovicchabant/lawrencium | 14 hg clone https://bitbucket.org/ludovicchabant/lawrencium |
21 | 15 |
22 You can then update the help tags with `:call pathogen#helptags()` and browse Lawrencium's help pages with `:help lawrencium`. | 16 You can then update the help tags with `:call pathogen#helptags()` and browse Lawrencium's help pages with `:help lawrencium`. |
23 | 17 |
24 | 18 |
19 Quick Start | |
20 ----------- | |
21 | |
22 Open a file from one of your Mercurial repositories. | |
23 | |
24 :e ~/Work/Project1/src/foo.py | |
25 | |
26 Work on it for a bit, then open another file, this time using `Hgedit` and a | |
27 repository-relative path: | |
28 | |
29 :Hgedit src/bar.py | |
30 | |
31 Take advantage of the auto-completion when typing the path! Work on that | |
32 other file too, then compare it to the parent revision version: | |
33 | |
34 :Hgvdiff | |
35 | |
36 Continue working. At any moment, you can run a Mercurial command and get a | |
37 quick glance at its output: | |
38 | |
39 :Hg log --limit 5 src/blah/bleh | |
40 | |
41 Note how auto-completion will help you with all the built-in commands and | |
42 their options! Any other parameter will auto-complete with repository-relative | |
43 paths. | |
44 | |
45 Once you're happy with your work, bring up the status window: | |
46 | |
47 :Hgstatus | |
48 | |
49 You can see the difference between modified files and their parent revision | |
50 version easily by moving the cursor to the appropriate line and hitting | |
51 <C-V>. You can also do an `addremove` by using <C-A> (use the selection mode | |
52 to add/remove several files at once!). | |
53 | |
54 Now it's time to commit. While still in the status window, remove all mentions | |
55 of files you don't want to commit, and hit <C-S>. Write your commit message, | |
56 go `:wq`, and you're done! You can check everything went fine: | |
57 | |
58 :Hg tip | |
59 | |
60 You can also commit faster with the `:Hgcommit` command of course! | |
61 | |
62 And that's it for now. Open the help file with `:help lawrencium`, and post | |
63 your questions and problems in the [issue tracker][1] on BitBucket. | |
64 | |
65 | |
25 [mercurial]: http://hg-scm.com | 66 [mercurial]: http://hg-scm.com |
26 [vim]: http://www.vim.org | 67 [vim]: http://www.vim.org |
27 [fugitive]: https://github.com/tpope/vim-fugitive | 68 [fugitive]: https://github.com/tpope/vim-fugitive |
28 [pathogen]: https://github.com/tpope/vim-pathogen | 69 [pathogen]: https://github.com/tpope/vim-pathogen |
70 [1]: https://bitbucket.org/ludovicchabant/vim-lawrencium/issues | |
29 | 71 |