applidium / Vim

Port of the Vim text editor to the iOS
https://applidium.com/en
535 stars 99 forks source link

Gestures as mappable objects #3

Open Ecco opened 12 years ago

Ecco commented 12 years ago

As requested here : http://news.ycombinator.com/item?id=3487837

mtwebb commented 12 years ago

Mappable gestures are an excellent idea.

I could easily imagine something along the lines of this in my .vimrc file:

imap <OneFingerTwoTaps> <Esc> 
nmap <TwoFingersOneTap> :
nmap <TwoFingersPinch> close
nmap <TwoFingersZoom> only

others waiting to be mapped
map <OneFingerSwipeLeft>
map <OneFingerSwipeUp>
map <OneFingerSwipeRight>
map <OneFingerSwipeDown>
jonasjonas commented 12 years ago

Yes, that would be great!

Especially with the strange mapping of ESC to backspace and if we don't add another line of special keys to the keyboard.