News for hackers. Stuff that matters.
Re:Vim 101: How to Start Using the Text Editor for Developers by keithnz on Thursday October 24, 2019 @06:20AM (#21343138)
other than a notepad replacement, I don't really use Vim.

But I do use VsVim in Visual Studio and also have a guide on how to do that with R#, I use Vim emulation in all the Jetbrains products as it's really well done, also in VSCode, Vimium in all my browsers. Also use AutoHotKey to add Vimish type navigation to windows controls.

Re:Vim 101: How to Start Using the Text Editor for Developers by mihaifm on Thursday October 24, 2019 @07:52AM (#21343664)
> Also use AutoHotKey to add Vimish type navigation to windows controls.

I attempted to create something like this some years ago: https://github.com/mihaifm/vim.ahk

It's pretty difficult, applications have vastly different behaviour even in regard to simple commands. Still, it was a fun experiment.

Re:Vim 101: How to Start Using the Text Editor for Developers by mxschumacher on Thursday October 24, 2019 @06:29AM (#21343192)
For me it's i3 as a linux desktop wm that uses Vim bindings - really handy.

Agree on Vimium in Chrome - I have to check whether it's available on Firefox.

I've never heard of R# (and it's hard to Google) - what is it?

Re:Vim 101: How to Start Using the Text Editor for Developers by bovine3dom on Thursday October 24, 2019 @07:12AM (#21343406)
Vimium is available for Firefox [1]. There are actually quite a few others too: Saka-key, Surfingkeys, Vim-Vixen (as a sibling has mentioned), VVimpulation and, last-but-most-janky, Tridactyl [2]. It'd be remiss of me not to mention Qutebrowser which is a standalone affair.

[1]: https://addons.mozilla.org/en-GB/firefox/addon/vimium-ff/

[2]: I can slag Tridactyl off as I wrote a lot of it. It's still my favourite one.

Re:Vim 101: How to Start Using the Text Editor for Developers by jakecopp on Thursday October 24, 2019 @08:30AM (#21343965)
Thanks so much for working on Tridactyl, it significantly improves my quality of life and saves my wrists! I'll be sure to donate once I have a full time income.

Why do you say it's janky? I love it and it feels pretty polished!

The only issue I have is when selecting the HN upvote/downvote arrow links with 'f' the letter hints overlap :D

Re:Vim 101: How to Start Using the Text Editor for Developers by bovine3dom on Thursday October 24, 2019 @09:35AM (#21344510)
General jank that gets on my nerves:

- `gi` doesn't work reliably on enough pages for it to be useful, ditto for `g;`.

- we outright break a handful of websites unless you `seturl [url] noiframe true`

- our mini-language is dreadfully inconsistent (e.g. `winopen -private` but also `hint -qb`). Corollary: composite commands steal semi-colons from JavaScript.

- most importantly, entering stuff into the command line is not a pleasant experience compared to our competitors due to lag and various things that block input but shouldn't (this is worse on Windows and generally gets worse the bigger and older your Firefox profile is)

I still like it, though. I'm glad you do too!

For your problem, I'd suggest making site specific binds: e.g. `bindurl news.ycombinator.com ;u hint -Jc [title="upvote"]` and, as a guess, `bindurl news.ycombinator.com ;d hint -Jc [title="downvote"]`, but I'm not cool enough to have downvote buttons so I don't actually know if that last one will work.

Re:Vim 101: How to Start Using the Text Editor for Developers by alpaca128 on Thursday October 24, 2019 @08:20AM (#21343869)
The best thing about Qutebrowser is that it's not only standalone but also it's 100% controllable via keyboard.

This is simply not possible with other browsers where the UI outside the actual website was only designed with a mouse cursor in mind. And that contradicts the idea of not constantly needing to switch to the mouse and back.

Re:Vim 101: How to Start Using the Text Editor for Developers by bovine3dom on Thursday October 24, 2019 @09:41AM (#21344573)
I agree, but I don't really use Tridactyl to replace the mouse - I use it for operations that would otherwise not be easy or possible (e.g. `b` and `B` to search through the titles of open tabs) or a favourite of mine, cloning a repository from Git{Hub,Lab} and opening a terminal in that folder.

Some of this lack of concern for using the cursor is probably because all of the keyboards I use have trackpoints.

Re:Vim 101: How to Start Using the Text Editor for Developers by robohoe on Thursday October 24, 2019 @08:30AM (#21343971)
And Vimari for Safari!
Re:Vim 101: How to Start Using the Text Editor for Developers by theta_d on Thursday October 24, 2019 @08:53AM (#21344152)
R# == JetBrains ReSharper, a Visual Studio plugin that adds a ton of functionality.
Re:Vim 101: How to Start Using the Text Editor for Developers by StreakyCobra on Thursday October 24, 2019 @06:38AM (#21343236)