Open ZNielsen opened 2 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
not stale
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
not stale
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This seems to work for me (translated to vimscript for a .vimrc):
augroup minimap_group
" get rid of existing
autocmd!
autocmd WinEnter * call CheckSkipMinimap()
augroup END
function! CheckSkipMinimap()
let l:mmwinnr = bufwinnr('-MINIMAP-')
if l:mmwinnr == -1
" no minimap window
return
endif
if winnr() == l:mmwinnr
" Go to the other window.
wincmd w
endif
endfunction
Preventing entering the minimap does unfortunately also seem to prevent using the mouse in the minimap for scrolling though.
Details in #142:
Originally posted by @dsully in https://github.com/wfxr/minimap.vim/issues/142#issuecomment-1089457753