Wednesday, March 15, 2017

Fugitive.vim -- cursorbind

Hello,

Very grateful to Tim Pope for having created and shared fugitive.vim and
Drew Neil for his teaching videos on fugitive and associated aspects of git.

I am finding that after a :Gdiff followed by :diffoff, cursorbind remains.

As per this link, an issue with cursorbind was addressed in August 2014
https://github.com/tpope/vim-fugitive/pull/538/commits/8dcaff42c26f7c1ca4958737e6b9d8d9401d6b10?diff=split

I understand that :Gdiff needs to have cursorbind on.

But I see in the code that w:fugitive_diff_restore get assigned a value
without checking if it already exists -- so if someone issues the
command :Gdiff twice, and cursorbind was off before the first :Gdiff,
would w:fugitive_diff_restore not have the incorrect value by getting
assigned the state that cursorbind is on?

However, it could still be that I might be doing something wrong. Any
suggestions? I can provide more information if necessary.

Thanks,

--Suresh

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: