News for hackers. Stuff that matters.
Re:Vim Anywhere by sodapopcan on Friday February 16, 2018 @05:45PM (#16397217)
I'm a vimmer and always use readline bindings in "insert" mode context. I find using vim bindings on the commandline to be infuriating.

On macOS, you need to add the following to $HOME/Library/KeyBindings/DefaultKeyBinding.dict to get ctrl-w and ctrl-u to work everywhere in macOS.

{ "^w" = "deleteWordBackward:"; "^u" = "deleteToBeginningOfLine:"; }

Re:Vim Anywhere by eadmund on Friday February 16, 2018 @11:18PM (#16398967)
> I find using vim bindings on the commandline to be infuriating.

Some folks find vim bindings to be just as bad to edit text grin

I don't actually agree: I think that vim's text-editing language is actually nicer than emacs's is. But I use emacs — with its bindings, not vim's — because after almost thirty years it's what I'm used to.

Re:Vim Anywhere by sodapopcan on Friday February 16, 2018 @11:34PM (#16399030)
Haha, I've never been interested in the whole vim vs. emacs thing. I just started with vim and a little too invested in it now. It definitely drives me nuts that it loads entire files into memory and that is the one thing that has made me tempted to switch. It rarely affects me but every once in a while when I accidentally open a massive file in vim and have to wait, I dream of emacs. I would use evil mode, OF COURSE :)
Re:Vim Anywhere by omaranto on Friday February 16, 2018 @05:58PM (#16397327)
Oh, if you like those bindings in insert mode, you are probably already aware of Tim Pope's vim-rsi [1] plugin. If not, check it out, it might have some interesting bindings you aren't using yet.

[1] https://github.com/tpope/vim-rsi

Re:Vim Anywhere by sodapopcan on Friday February 16, 2018 @06:04PM (#16397369)
I'm absolutely aware of it and was gonna mention it but figured I'd said enough :)

When I said "insert" I meant like, "insert mode" everywhere else but vim :)

But yes, RSI is a great plugin (as are most of tpope's plugins)

Re:Vim Anywhere by sodapopcan on Friday February 16, 2018 @06:09PM (#16397406)
Also, you mentioning it made me realize I never starred the repo, so thanks, haha!
Re:Vim Anywhere by Lio on Saturday February 17, 2018 @05:20AM (#16400029)
Thanks so much for this. I usually use Karabiner for the same thing.

Do you know anyway to get the same behaviour on Linux and Gnome at all?