Skip to content

Commit

Permalink
add default key mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
kamykn committed Nov 20, 2019
1 parent 00df160 commit eaf4f8e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugin/spelunker.vim
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,12 @@ if !hasmapto('<Plug>(spelunker-toggle)')
silent! nmap <unique> ZT <Plug>(spelunker-toggle)
endif

" [toggle in the buffer feature]===============================================================
nnoremap <silent> <Plug>(spelunker-toggle-buffer) :call spelunker#toggle_buffer()<CR>
if !hasmapto('<Plug>(spelunker-toggle-buffer)')
silent! nmap <unique> Zt <Plug>(spelunker-toggle-buffer)
endif

" [augroup] ==================================================================
if g:spelunker_disable_auto_group == 0
augroup spelunker
Expand Down

0 comments on commit eaf4f8e

Please sign in to comment.