News for hackers. Stuff that matters.
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).