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 -- 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
