voldikss / vim-floaterm

:computer: Terminal manager for (neo)vim
MIT License
2.47k stars 78 forks source link

Hide/Toggle with same keybinding #375

Closed QiangZiBro closed 1 year ago

QiangZiBro commented 1 year ago

Hi, I would like to ask if there's a way to hide/toggle with the same keybinding, currently, I'm using:

    let g:floaterm_keymap_hide   = '<F9>'
    let g:floaterm_keymap_toggle = '<F12>'

What if we just use <F12> to do two things (first toggle then hide)? And it would be nice if such instruction appeared in README. Thank you!

voldikss commented 1 year ago

Sorry but I couldn't get the point. should cover the both cases: toggle to show and toggle to hide, doesn't it?

QiangZiBro commented 1 year ago

Just checked and it worked, thank you for the great project!