New version of vip
Hi,
I now managed to include support for using the touch screen like a mouse. In this new mode taps are interpreted as clicks with the left mouse-button and also dragging the mouse with the mouse button pressed works via swipes. This required a few more modifications to vim and some changes in the "user interface" of vip.
When vip gets started it behaves mostly like the previous version, i.e. taps in the upper, lower, right and left part of the editor area emulate the arrow keys, up and down swipes scroll and pinch guestures change the font size.
To get the new, alternative mode ("mouse" mode) vim first must be asked to accepts mouse events - it doesn't do so by default. To get vim to do that a command like ":set mouse=a" is required. If you want this on whenever you start vim you should put that (or a similar) command into the .vimrc file.
Once vim is set up this way vip will be prepared to switch to the new touch screen "mouse" mode. You can get there either via the menu, which has a new entry "Touchscreen", or by a short click on the backward button (which now toggles between the two touch screen modes). In the new "mouse" mode everything you do on the editor part of the screen will be reported to vim as mouse events (so no scrolling, no pinch guestures, no menu by a long tap are available in this mode!). It seems to work quite well, though my fingers are bit "large" for real precision work;-) I guess the new mode can be most useful for quickly getting the cursor as near as possible to the place where you want to edit - then shortly press the backward button (to switch back to the "normal" arrow key mode) and use the emulated arrow keys to go to exactly the place you want.
Since the backward button is now used for switching between the touch screen modes you can only use the forward button to cycle forward through the different keyboard layouts.
To install the new version you must reinstall both 'vip.app' and the 'vim' binary. Also a few minor details in the configuration file 'vip.cfg' and the keyboar file 'vip.kbd' have been changed. The new version is available via the links in my first post in this thread.
Best regards, Jens
|