Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update g:netrw_list_hide & redraw on OptionSet wig #104

Closed
wants to merge 1 commit into from

Conversation

kiryph
Copy link
Contributor

@kiryph kiryph commented Aug 3, 2018

OptionSet wig should be a rare event.

see #69

OptionSet wig should be a rare event.
@@ -36,6 +36,11 @@ nnoremap <silent> <Plug>VinegarTabUp :call <SID>opendir('tabedit')<CR>
nnoremap <silent> <Plug>VinegarSplitUp :call <SID>opendir('split')<CR>
nnoremap <silent> <Plug>VinegarVerticalSplitUp :call <SID>opendir('vsplit')<CR>

augroup Vinegar_redraw
autocmd!
autocmd OptionSet wildignore windo exe "norm \<c-l>"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't windo leave the last window focused?

Copy link
Contributor Author

@kiryph kiryph Aug 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, apparently the focus can change. Too bad. I do not know how to achieve this otherwise. I also do not like the visible redraw for my current configuration. Executing <c-l> in all windows looks like a glitch. For me solving this is actually more complicated than I would like to have it. I close this PR and see if I find the time for futher investigation. I also missed the guards for older vim versions without the event OptionSet.

@kiryph kiryph closed this Aug 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants