News for hackers. Stuff that matters.
Re:Staying the hell out of insert mode (vi) by sophacles on Monday April 26, 2010 @04:18PM (#1295863)
Yes, vi related muscle memory is particularly useful when using non-vi text entry.:wq
Re:Staying the hell out of insert mode (vi) by koenigdavidmj on Monday April 26, 2010 @04:45PM (#1295958)
Grr. Why can't ^W be something less harmful in most programs?
Re:Staying the hell out of insert mode (vi) by jrockway on Monday April 26, 2010 @04:58PM (#1296020)
What programs is it not backward-kill-word in?
Re:Staying the hell out of insert mode (vi) by sophacles on Monday April 26, 2010 @05:02PM (#1296041)
In vim it is the first part of a sequence for manipulating windows. This mindset can conflict with e.g. firefox, in which ctrl-w closes a window. (particularly if there are multiple firefoxes/tabs open)

Edit: That should be close tab, not close window, c-shift-w is window.

Re:Staying the hell out of insert mode (vi) by jrockway on Monday April 26, 2010 @05:09PM (#1296072)
Ah. In Emacs, bash, and conkeror, it does something useful.

(I've never really understood why there are keyboard shortcuts for things like "quit program" and "print". How often, if ever, do you want to do those things? Do they really need to be one keystroke away!?)

Re:Staying the hell out of insert mode (vi) by sophacles on Monday April 26, 2010 @05:24PM (#1296146)
Thats a pretty inflammatory statement... "In one program and a couple that emulate it...".

How is it not useful to have a keyboard shortcut to change focus between windows? Windows in vim refer to what I believe are called "splits" in emacs. The vim c-w stuff is analogous to c-x stuff in emacs.

As for close tab shortcuts in firefox -- I use it all the time. Standard work flow for me includes c-t, google.com, <misspelled word>, c-w, <correct spelling from "did you mean">.

Re:Staying the hell out of insert mode (vi) by viraptor on Monday April 26, 2010 @07:43PM (#1296637)
> Standard work flow for me includes c-t, google.com, <misspelled word>, c-w, <correct spelling from "did you mean">.

This might be quicker: c-k, <misspelled word>, alt-enter, c-w

alt-enter opens a new tab with the search.

Re:Staying the hell out of insert mode (vi) by chancho on Monday April 26, 2010 @11:38PM (#1297139)
You never close browser tabs?
Re:Staying the hell out of insert mode (vi) by BrandonM on Monday April 26, 2010 @07:37PM (#1296627)
firefox, in which ctrl-w closes...

It's very useful in situations like this to know that Ctrl-Shift-T reopens the last closed tab, and you can press it repeatedly to continue opening less-recently closed tabs.

Re:Staying the hell out of insert mode (vi) by koenigdavidmj on Monday April 26, 2010 @07:54PM (#1296657)
Yeah, but in Pidgin you just disconnected. And told your buddy/chat room that you did.
Re:Staying the hell out of insert mode (vi) by chancho on Monday April 26, 2010 @11:41PM (#1297143)
In Windows, KDE and Gnome it almost universally closes a window. By default, anyway.
Re:Staying the hell out of insert mode (vi) by jodrellblank on Monday April 26, 2010 @10:02PM (#1296911)
Windows programs, it's often kill MDI child window (or these days, tab).
Re:Staying the hell out of insert mode (vi) by jodrellblank on Monday April 26, 2010 @10:03PM (#1296918)
I can tell Vim isn't user friendly because :Q isn't an alias for :q by default. :/
Re:Staying the hell out of insert mode (vi) by pyre on Monday April 26, 2010 @10:05PM (#1296925)
One of my co-workers has aliases for typos of common unix commands. (e.g. 'alias mroe=more' and 'alias moer=more' etc)
Re:Staying the hell out of insert mode (vi) by varikin on Monday April 26, 2010 @11:56PM (#1297164)
That is one reason I like Zsh. It can figure out typos most often and prompts you. For example:

  > sl
  zsh: correct 'sl' to 'ls' [nyae]?
(edit: formatting)
Re:Staying the hell out of insert mode (vi) by Calamitous on Tuesday April 27, 2010 @02:25AM (#1297411)
Ugh. I keep looking for a way to turn this "feature" off. The fraction of a second it would take me to recognize and correct my mistake is far less frustrating and time-consuming than having to parse the message and select an option.

Of the hundreds of times this feature has popped up, I believe I've actually hit "y" twice.