News for hackers. Stuff that matters.
Re:Git git git git git by splaty on Tuesday September 26, 2017 @04:46PM (#15342356)
Not this, but I do fairly often think assume I'm in vim when I'm not.

`alias :q="echo NOT IN VIM!!!"`

Re:Git git git git git by emodendroket on Tuesday September 26, 2017 @08:07PM (#15343777)
My favorite one of these is typing ctrl-w (cut in emacs) in a browser tab as I am editing a bunch of text in a text box.
Re:Git git git git git by steinuil on Tuesday September 26, 2017 @11:47PM (#15344777)
I use vimperator, so the only program I use a lot which still doesn't recognize ctrl+w is Hexchat.

My friends have gotten used to see me part the channel and rejoin shortly after, cursing my fingers.

Re:Git git git git git by wlkr on Wednesday September 27, 2017 @03:51AM (#15345685)
Hexchat closing on C-w is such a pain! It can't be scripted away either because it's hardcoded in the source. I haven't looked into this for some time but there does seem to have been some updates.

https://github.com/hexchat/hexchat/issues/397

Re:Git git git git git by kqr on Sunday October 01, 2017 @04:02AM (#15376874)
That sounds like the kind of thing that would be really easy to maintain your own fork for...
Re:Git git git git git by auscompgeek on Wednesday September 27, 2017 @08:40AM (#15347150)
HexChat parting on Ctrl+w is probably one of the main reasons that drove me to use a TUI IRC client like weechat.
Re:Git git git git git by oAlbe on Wednesday September 27, 2017 @03:00AM (#15345477)
You can try Lazarus form recovery[1] to mitigate your pain. It locally saves the content of forms and allows you to pull it back.

[1] https://addons.mozilla.org/en-US/firefox/addon/lazarus-form-...

Re:Git git git git git by polymeris on Wednesday September 27, 2017 @01:26AM (#15345130)
Heh, for me ctrl-w means "extend selection to enclosing expression", which leads to the same issue in browsers.
Re:Git git git git git by andreareina on Wednesday September 27, 2017 @12:31AM (#15344944)
One of the things I appreciate about macOS is that it implements some of the emacs behavior (C-a, C-e, C-k). Unfortunately not C-y, and non of the M- ones work since that's for special characters. I understand they originally come from the readline library.
Re:Git git git git git by jasonm23 on Wednesday September 27, 2017 @10:09AM (#15347922)
Now try C-k and then C-y

Then regular old Cmd + v.

You're welcome.

Re:Git git git git git by kqr on Wednesday September 27, 2017 @12:58AM (#15345033)
Well, cutting is called killing in Emacs...
Re:Git git git git git by pvorb on Wednesday September 27, 2017 @02:26AM (#15345351)
So why is emodendroket referring to ctrl-w then?
Re:Git git git git git by emodendroket on Wednesday September 27, 2017 @09:54AM (#15347794)
In other words ctrl-w is "kill," which is what most people would think of as "cut," and ctrl-y is "yank," which is what most people would think of as "paste."
Re:Git git git git git by jasonm23 on Wednesday September 27, 2017 @10:10AM (#15347931)
And Vimmers would think of yank as copy or kill save
Re:Git git git git git by kqr on Sunday October 01, 2017 @04:05AM (#15376877)
That's funny. Never thought about that. I guess Emacs people think of it as yanking from the clipboard to the document, and Vim people think of it as yanking from the document into the clipboard.
Re:Git git git git git by z1mm32m4n on Wednesday September 27, 2017 @03:08AM (#15345517)
I actually aliased :q to clear:

https://github.com/jez/dotfiles/blob/master/util/aliases.sh#...

I also have clera, lcear, and lcera -> clear, and :tabe -> vim.

Re:Git git git git git by AdamGibbins on Wednesday September 27, 2017 @06:37AM (#15346422)
Are you aware Ctrl-l also clears? I can't recall the last time I typed clear.
Re:Git git git git git by jasonm23 on Wednesday September 27, 2017 @10:11AM (#15347938)
I have to admit, I wince when I see someone type clear.
Re:Git git git git git by Sir_Cmpwn on Tuesday September 26, 2017 @04:49PM (#15342381)
Not just `alias :q exit`?
Re:Git git git git git by heelhook on Tuesday September 26, 2017 @04:58PM (#15342457)
Not really, if they mean `:q` to exit vim and go back to the terminal `alias :q=exit` wouldn't produce the desired result.
Re:Git git git git git by maerF0x0 on Tuesday September 26, 2017 @06:23PM (#15343106)
could really mess with it:

> alias :q=vim -c ':q'

Re:Git git git git git by tomsthumb on Tuesday September 26, 2017 @06:59PM (#15343368)
best one
Re:Git git git git git by kronos29296 on Wednesday September 27, 2017 @01:17AM (#15345095)
I really do that a lot so I aliased 'q' to exit in shell.