Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always in command mode, most of the time #45

Open
krzkrzkrz opened this issue Jan 8, 2012 · 10 comments
Open

Always in command mode, most of the time #45

krzkrzkrz opened this issue Jan 8, 2012 · 10 comments
Labels

Comments

@krzkrzkrz
Copy link

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.

@redjohn
Copy link
Contributor

redjohn commented Jan 9, 2012

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

@krzkrzkrz
Copy link
Author

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

@redjohn
Copy link
Contributor

redjohn commented Jan 10, 2012

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

@krzkrzkrz
Copy link
Author

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

@codingcampbell
Copy link

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.

@krzkrzkrz
Copy link
Author

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

@codingcampbell
Copy link

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

@krzkrzkrz
Copy link
Author

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
Copy link
Author

Any idea if this feature can be implemented?

@andersonfreitas
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants