Skip to content

Commit

Permalink
fix vim behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
iaalm committed Dec 5, 2023
1 parent 2286625 commit 447dc60
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugin/terminal_drawer.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ command! -bang -nargs=0 ToggleTerminalDrawer call terminal_drawer#ToggleTerminal
" maybe a differnt key mapping
let s:leader = get(g:, 'terminal_drawer_leader', '<C-t>')
execute 'map ' . s:leader . ' :ToggleTerminalDrawer<CR>'
execute 'tmap ' . s:leader . ' <C-\><C-n>:ToggleTerminalDrawer<CR>'
if has('nvim')
execute 'tmap ' . s:leader . ' <C-\><C-N>:ToggleTerminalDrawer<CR>'
else
execute 'tmap ' . s:leader . ' <C-W>:ToggleTerminalDrawer<CR>'
endif

0 comments on commit 447dc60

Please sign in to comment.