code-minimap icon indicating copy to clipboard operation
code-minimap copied to clipboard

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

Open WillDawnlll opened this issue 3 years ago • 2 comments
trafficstars

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

WillDawnlll avatar Dec 09 '21 05:12 WillDawnlll

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

WillDawnlll avatar Dec 09 '21 05:12 WillDawnlll

this belongs here https://github.com/wfxr/minimap.vim/issues

EgZvor avatar Feb 09 '23 05:02 EgZvor