On Sat, Jul 9, 2011 at 5:49 PM, eleanor <[email protected]> wrote:
> Well it would probably be good to implement a function that also accepts
> arguments for the user to change the branch.
Regarding this, and the original push/pull request, I am extremely
uncomfortable implementing that kind of behavior, where "that kind"
means:
1. I don't personally want it
2. There are many edge cases where I'd have to make arbitrary decisions
3. It would be vaguely "dangerous" if used by accident.
> Btw: is it possible in VCSCommand to output the default/current branch -
> something like the "git show-branch" command. I know I can use that command
> directly, but that wouldn't be consistent with the multiple VCSs.
Where would you like it output? There is functionality for displaying
status, including branch, in the status line. To use this, you would
need to do the following:
1. Enable buffer management (presumably in your .vimrc):
let VCSCommandEnableBufferSetup=1
2. Access the buffer-local variables defined by vcscommand in your
status line. I do this with an example function distributed with the
plugin:
set statusline=%<%f\ %{VCSCommandGetStatusLine()}\ %h%m%r%=%l,%c%V\ %P
Thank you,
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