Re: vim keybindings
Re: vim keybindings
- Subject: Re: vim keybindings
- From: Ryan Wilcox <email@hidden>
- Date: Sun, 4 Jan 2004 01:45:40 -0500
On Sunday, January 4, 2004, at 12:58 AM, Tristan O'Tierney wrote:
and to dave:
surely there must be a middle ground us unix and mac
developers can agree upon? a quick fix like kevin's
suggestion would work if done properly i think, but it
still is an inbetween fix to the original problem:
editor widgets are too hard to customize. i'm not so
sure extending the apple events support for vim is the
long term solution. so the integration with the
external terminal would be better, but that's just
dodging the issue is it not?
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. Most of the time when I'm working in
Codewarrior I use BBEdit as an external editor (about a quarter of the
time I'm using Xcode I have this arrangement too, but some bugs*
keep/had kept me from using it all the time). In one way I'd love to
switch to vim (although then all my custom BBEdit scripts would go
away...).
Your two 'separate windows for coding' issue I believe is due to a
limitation/bug in how XCode handles external editors. Using BBEdit with
Xcode feels very clunky as well (although perhaps this has gotten
better in 1.1? I haven't used it extensively.)
Better AppleEvent support for vim wouldn't just benefit Xcode users -
it would benefit users of every other Mac application that provides
external editor support. 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).
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.)
But even emacs key commands only work in Cocoa applications.
So, 'long-term feeling' or not, better AE support in VIM would probably
give the most flexibility to both the users - and be a lot faster than
waiting for Apple to (a) get vim keybindings implemented somehow and
(b) get (all) keybindings working in Carbon applications too
[*] Dear XCode team; I'd love to be able to set breakpoints, build and
run programs, from the AppleEvent/External Editor interface. Now that I
mention it, the ability to look up definitions for symbols would be
really nice too....
My two cents,
_Ryan Wilcox
_______________________________________________
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.