Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Customize the Cocoa text binding system' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Customize the Cocoa text binding system
Authored by: jacobolus on Mar 21, '06 11:03:01AM

It's not very possible, because Vim is a modal editor, whereas NSTextView widgets are not. But if you want, you can try to approximate some vim bindings by using modifier keys and leaving it non-modal.

If you come up with some good vim approximations, let me know and I'll add them to my page.



[ Reply to This | # ]
Customize the Cocoa text binding system
Authored by: hbp4c on Mar 21, '06 03:07:35PM

Vi keybindings exist for the bash shell, a user enter inserts mode by default unless they hit esc to go into command mode for whatever reason.

I don't see why a keybinding couldn't be designed that emulated this functionality.



[ Reply to This | # ]
Customize the Cocoa text binding system
Authored by: ky11x on Mar 21, '06 08:39:06PM

Because Cocoa text fields are not modal. The original poster already told you why it is not possible to do this within the context of the Cocoa classes without doing more programming than mere configuration.



[ Reply to This | # ]