key bindings - Distinguishing between the hold and release of a modifier key between two keystrokes in Vim -


i'd make mapping in vim ctrltab switches previous buffer (:b#), if tab pressed again without releasing ctrl, switches next buffer (:bn) instead.

this similar how alttab function in ms windows works. there way achieve effect?
can't seem find question asked anywhere else.

vim processes complete key presses; there's slight semantic difference in <leftmouse> vs. <leftrelease>. somehow need process key chording different, separate keystrokes (maybe unused <f13> key?), , can :map inside vim. on windows, autohotkey tool let achieve that.

alternatively, :nmap <c-tab>, , check whether previous invocation has happened (using localtime()). should give works practically want.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -