Re: vim keybindings
Re: vim keybindings
- Subject: Re: vim keybindings
- From: Kevin Grant <email@hidden>
- Date: Sun, 4 Jan 2004 01:38:26 -0600
Being an ol' time mac person myself (and vim user when I'm using the
commandline), I don't see what's so wrong with someone implementing
better AppleEvent support for vim. . . . .
All of the necessary events do seem to exist in the Processes Suite in
System Events [at least on Panther] to send vim the events it requires.
The implication is that you could use something like "key code" to
target a process and throw whatever kind of keyboard input you want at
it... Of course, I have not tried it. :)
. . . .No offense to the (mac) developers of course, but it seems that
the vim versions for other platforms look a lot... better. On other
platforms vim also seems more native. On the Mac vim feels very alien
(I'm referring to the Carbon build).
I am referring to /usr/bin/vim on Panther, which looks the same as any
other vim I have used on Unix platforms. I am assuming that is not the
Carbon build you are referring to?
But yes, I'd love vi(m) keybindings in all my applications. Perhaps
something like the Kanji text input system would work. IIRC this pops
up a floating palette that you type words into - this could be used
for the vim commands.
With a Kanji-like command input system, you hit escape, this floating
window pops up. You enter your command (for example, d4l), and when
the command executes the floating window goes away. (This solution
also solves the 'oh, crap, what did I just type' problems one can have
in the vim command mode.) . . . .
MacTelnet [my app] has a feature in its terminal similar to this: you
can show and hide a floating command line into which you can type
whatever you want without sending it until you are ready. However,
since it currently assumes your command will end with either Tab or
Return, it probably will not work when trying to send *only* command
characters to an editor. [Of course, I *have* been meaning to improve
this... :) ]
Kevin G.
http://homepage.mac.com/kmg/
mail to kevin at ieee dot org
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.