Thursday, May 28, 2015

Re: autocmd BufEnter * :set selection=exclusive

Paul wrote:
> toothpik <toothpik6 <at> gmail.com> writes:
>> On Fri, Apr 24, 2015 at 10:29:00PM +0000, Paul wrote:
>>> Christian Brabandt <cblists <at> 256bit.org> writes:
>>>> Check with :verbose set selection? what caused the change of the
>>>> selection.
>>>>
>>>> If a plugin is the culprit contact the plugin author. He should
>>>> fix it.
>>> It shows that netrw is the last to change the "selection" option.
>>> However, the author confirmed that netrw saves and restores the
>>> original values.
>> when working with said author you need to give specific details
>> about how you invoke netrw and how you leave it -- that plugin has
>> more entries and exits than a big block of swiss cheese and it's
>> possible you've found a way to foil the expected behavior
> That would be challenging...I am not exactly sure *when* the selection
> option gets clobbered and not restored. It's difficult to know which
> method of exiting is causing the problem. And my methods of exiting
> are probably the same as most people's: Change windows, close window,
> close tab, switch tab, open a file, or preview a file.
>
You could put

redir >> $HOME/vss
verbose set selection?
redir END

in s:NetrwOptionSave(). That way a file, "vss", will be created with
the output of "verbose set selection?" -- eventually you'll find a "last
set" message in that file that'll help point you where the problem occurred.

Regards,
Chip Campbell

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