wfxr/code-minimap

close minimap window ,then use *# , error "no mmwinid"

WillDawnlll opened this issue · 2 comments

may be should unmap in close funciton ....
now i just comment this nnoremap code....

" line 210 , plugin/minimap.vim
" Mappings to make searching update with * or #
if g:minimap_highlight_search != 0
    nnoremap <silent> * *:call minimap#vim#UpdateColorSearch(1)<CR>
    nnoremap <silent> # #:call minimap#vim#UpdateColorSearch(1)<CR>
    " Example mapping for nohlsearch to also clear the minimap search highlighting
    " nnoremap <silent> `` :nohlsearch<CR>:call minimap#vim#ClearColorSearch()<CR>
endif

test nunmap in close function ,still got error when open file and no auto open minimap.
so maybe need a exist test when update minimap ...