Vintage
Vintage copied to clipboard
Always in command mode, most of the time
Is it possible to always have Vintage in command mode most of the time?
For example, consider these 2 scenarios:
- If I am in INSERT mode, and I click anywhere in the file, Vintage should change the mode back to COMMAND mode.
- When I switch files / tabs, Vintage should always start with COMMAND mode
These two behaviors are quite Vim-like. Would be great to have them.
For number 2, do you have the option "vintage_start_in_command_mode": true set?
Yeap. I think this option only sets command mode, when Sublime starts up
Hmm, for me it causes every new tab to start in command mode.
Yep, I can verify this as well.
However, what I am asking for is:
First scenario:
- When in INSERT mode
- Mouse left-click anywhere in the same file
- Mode should now be in COMMAND mode
Second scenario:
- Open two tabs (tab Foo and tab Bar). Both start in COMMAND MODE
- In tab Foo, enter INSERT MODE
- Click on tab Bar and then click back into tab Foo
- Tab Foo is still in INSERT MODE. Tab Foo should be in COMMAND MODE
Neither of your scenarios reflect vim/gvim's behavior (at least, not on ubuntu 10.04)
For your first scenario, in vim/gvim, if you click anywhere in a file while in INSERT mode, it stays in INSERT mode.
For your second scenario, in vim/gvim, the INSERT state transfers from tab to tab (assuming you're clicking, of course, and not using gt). This is different from Sublime (which keeps a command-state per-tab) but I'm not sure if that's really a problem.
The scenarios I described above reflect Macvim. This is also the same behavior I see when I use VicoApp. I guess for vim in Ubuntu, things are different.
In this case, would it be possible to allow the user to select which approach to take? Either:
- the scenarios I explained above. i.e. always COMMAND mode
- the scenarios explained by dysfunction
- possibly other scenarios
I just checked MacVim and it works exactly how gvim/vim are working in Ubuntu. Maybe there is something special in your vimrc?
I just looked at my vimrc @ https://github.com/krzkrzkrz/macvim/blob/master/vimrc
Don't think I have anything there too specific to this. In any case is it possible to include the requested feature to Vintage? Would be great to have it as some kind of option.
Any idea if this feature can be implemented?
At least for the second scenario there's a solution, view my comment in #73