You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
vi mode: ^C in insert mode doesn't work as documented #2228
Nope, it's actually bound to 'commandline ""' i.e. clearing the commandline in both normal and insert mode. Where in the docs does it say that? Your link is to the "other features" section, where I can't find any reference to vi mode or ^C or \cc. If it says that, it's disagreeing with the code.
Edit: Oops, there's a "Vi mode commands" section above that, which says:
Insert mode
[...]
Escape or ControlC enters command mode.
I just tested with ex-vi (sourceforge link) which is supposed to be a faithful vi (and is the default vi on archlinux at least) and vim: both exit insert mode. (Note: Am not a vi expert, use emacs with evil)
So it seems like what's documented is the right behavior.
Activity
faho commentedon Jul 19, 2015
Nope, it's actually bound to 'commandline ""' i.e. clearing the commandline in both normal and insert mode. Where in the docs does it say that? Your link is to the "other features" section, where I can't find any reference to vi mode or ^C or \cc. If it says that, it's disagreeing with the code.
Edit: Oops, there's a "Vi mode commands" section above that, which says:
So yeah, it should be.
ridiculousfish commentedon Jul 19, 2015
Any vi expert want to weigh in on what the right behavior should be?
vcunat commentedon Jul 20, 2015
I tested in gvim that ^C does what's documented, and I find it very practical, as Esc key tends to be far from reach.
faho commentedon Jul 20, 2015
I just tested with ex-vi (sourceforge link) which is supposed to be a faithful vi (and is the default vi on archlinux at least) and vim: both exit insert mode. (Note: Am not a vi expert, use emacs with evil)
So it seems like what's documented is the right behavior.
pickfire commentedon Jul 21, 2015
I notice that too, it is just different in
fish_vi_mode.pickfire commentedon Aug 17, 2015
There is 2 mode indicator in the normal prompt, is this the intended feature?
ridiculousfish commentedon Aug 17, 2015
No, that is not intended. Are you sure you don't have a custom prompt?
pickfire commentedon Aug 17, 2015
No, I am currently using the classic + git prompt.
faho commentedon Aug 17, 2015
What does
type fish_promptsay? The default classic+git prompt only has the vi-mode thing in one place.Also, this is really another issue, please open one.
pickfire commentedon Aug 18, 2015
This only occur in when using classic + git theme, there is no problem when using sorin theme.
ridiculousfish commentedon Aug 18, 2015
Oh, I see, classic+git has its own mode indicator. I think we can just remove that.
Remove vi mode indicator from classic_git prompt
ridiculousfish commentedon Aug 18, 2015
Fixed as 2b87705. Thanks for reporting this!
Remove vi mode indicator from classic_git prompt