On Jul 6, 4:18 pm, Bob Hiestand <[email protected]> wrote: > On Sun, Jul 4, 2010 at 8:26 PM, JD <[email protected]> wrote: > > I was hoping someone could help me with this. I'd like to put the > > current hg revision of the project i'm working on in the Vim > > statusline to make it really easy to see without having to use hg log > > or something. I have an idea of the commands necessary to do this, but > > i'm not nearly good enough with Vim scripting so I was hoping someone > > here would be able to help me out. > > JD, > > You can use the vcscommand plugin > (http://www.vim.org/scripts/script.php?script_id=90) to do this for > several VCS. > > You would need to do something like the following: > > let VCSCommandEnableBufferSetup = 1 > set statusline=%<%f\ %{VCSCommandGetStatusLine()}\ %h%m%r%=%l,%c%V\ %P > > bob
Hey bob...I didn't do this for a few reasons: 1. When i tried it, it was *INCREDIBLY* slow to open vim on files tracked by a VCS...Probably taking about 3-5 seconds to open Vim on a pretty fast system. 2. It shows revision number as well as revision hash...I don't want the hash and couldn't find an easy way to disable it. My current implementation (Using a slightly modified MinSCM) works fine and doesn't seem to have either of those issues so i'm currently pretty happy with it. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
