Vintage icon indicating copy to clipboard operation
Vintage copied to clipboard

Always in command mode, most of the time

Open krzkrzkrz opened this issue 13 years ago • 10 comments

Is it possible to always have Vintage in command mode most of the time?

For example, consider these 2 scenarios:

  1. If I am in INSERT mode, and I click anywhere in the file, Vintage should change the mode back to COMMAND mode.
  2. 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.

krzkrzkrz avatar Jan 08 '12 04:01 krzkrzkrz

For number 2, do you have the option "vintage_start_in_command_mode": true set?

redjohn avatar Jan 09 '12 22:01 redjohn

Yeap. I think this option only sets command mode, when Sublime starts up

krzkrzkrz avatar Jan 10 '12 03:01 krzkrzkrz

Hmm, for me it causes every new tab to start in command mode.

redjohn avatar Jan 10 '12 17:01 redjohn

Yep, I can verify this as well.

However, what I am asking for is:

First scenario:

  1. When in INSERT mode
  2. Mouse left-click anywhere in the same file
  3. Mode should now be in COMMAND mode

Second scenario:

  1. Open two tabs (tab Foo and tab Bar). Both start in COMMAND MODE
  2. In tab Foo, enter INSERT MODE
  3. Click on tab Bar and then click back into tab Foo
  4. Tab Foo is still in INSERT MODE. Tab Foo should be in COMMAND MODE

krzkrzkrz avatar Jan 11 '12 04:01 krzkrzkrz

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.

codingcampbell avatar Jan 11 '12 20:01 codingcampbell

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:

  1. the scenarios I explained above. i.e. always COMMAND mode
  2. the scenarios explained by dysfunction
  3. possibly other scenarios

krzkrzkrz avatar Jan 12 '12 03:01 krzkrzkrz

I just checked MacVim and it works exactly how gvim/vim are working in Ubuntu. Maybe there is something special in your vimrc?

codingcampbell avatar Jan 12 '12 14:01 codingcampbell

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.

krzkrzkrz avatar Jan 13 '12 01:01 krzkrzkrz

Any idea if this feature can be implemented?

krzkrzkrz avatar Feb 01 '12 01:02 krzkrzkrz

At least for the second scenario there's a solution, view my comment in #73

andersonfreitas avatar Aug 25 '12 15:08 andersonfreitas