Thread: Re: lost mappings
Cream is a free, easy-to-use configuration of the Vim text editor
Brought to you by:
digitect
From: Steve H. <dig...@mi...> - 2005-06-09 18:05:10
|
From: Shea Martin, Jun 9, 2005 11:26 AM > > My new job requires a windows environment. I have always found that > GVim on Windows is annoying, even though I live by it on X based > OS's. > > I just tried Cream today, and must say that it does a great job of > getting GVim to integrate to Windows. In this job I spend a lot of > time in Visual Studio, and Cream's mappings use many of the same > keystrokes, which is handy. But I want to use Cream in 'Expert > Mode', or 'Cream Lite' behavior. I am not sure what the difference > is between the two. Expert mode might be mis-named. It simply enables the Esc key to toggle between Normal and Insert modes. It doesn't even turn off Vim's insertmode option. The idea is that if you are a Vim expert, you occasionally want to toggle out to Normal mode and do something expert. Lite mode turns off all Cream mappings and Vim's &insertmode. All the functionality is still present, but you no longer have access to it except via the menus, and then, only in insert/visual modes. It is really a way to experience the full flavor of Vim without removing the menus and toolbar to get back to full Cream. > Basically I want all the cream behavior, but I want to keep the > modal behavior. This is nearly conflicting. Cream is designed only to work via insert mode and visual mode. The two modes we're discussing give you access to other modes in various capacities, but then Cream's functionality won't be available. > My problem can be reproduced like this: > > - Choose Cream Mode behavior > > - Select Expert Mode. > > - Now: in INSERT mode, I have all of the Cream key mappings and menu > options, button bars, etc. But as soon as I am in NORMAL mode, I > can't even hit the Save button! All the folding macros change to > GVim's z-based key-sequences (that is really annoying, using F9 in > INSERT mode, and zo in NORMAL mode). > > So how do I accomplish the following: I want to use full Cream > mode, but I want to have modal operation (INSERT, NORMAL, VISUAL, > etc). Basically like Cream Lite, but using the Cream keymappings > all the time, and without losing the Cream menu items when in NORMAL > mode. Here's the real problem: Vim functions behave differently depending on the mode from which they are called. Technically, the function behaves the same, but the escaping and cursor positioning wrapping it must differ. Many functions have internal handlers to react distinctly depending on if the call was from insert or visual mode. Writing this normal mode set of functionality into Cream would be non-trivial. I've never been motivated since Cream was always intended to be a single-mode environment. And while there are a few users that might find this useful (yourself included), it would add a good bit of complexity to the project and take a great amount of time and energy. -- Steve Hall [ digitect mindspring com ] :: Cream... something good to put in your Vim! :: http://cream.sourceforge.net |