News for hackers. Stuff that matters.
Re:Vimconf 2021 – Oct 29, 30 by memco on Friday October 29, 2021 @09:51PM (#29045332)
Not a Vim user myself but I’m keeping an eye on neovim especially after seeing the demo of distant, which is a remote editing plugin. I do a lot remote Python dev and debugging and Nvim hasn’t quite fit the need just yet. Though I Would love to move my workflow into the terminal just so I can consolidate everything into a single workspace. I currently have nearly a dozen workspaces and something like 20 editor windows for different projects which I think is too much, but it’s the only way I have to stay organized right now.
Re:Vimconf 2021 – Oct 29, 30 by auslegung on Friday October 29, 2021 @09:53PM (#29045341)
This is a gentle plan to learn Vim in 4 weeks: https://peterxjang.com/blog/how-to-learn-vim-a-four-week-pla.... I highly recommend it. I love what neovim is doing, but I think you get the most out of neovim by learning vanilla vim first.
Re:Vimconf 2021 – Oct 29, 30 by wanderingmind on Friday October 29, 2021 @11:14PM (#29045697)
If you work on Linux all you need is sshfs to remote mount and if you have pycharm add the remote interpreter as the project interpreter. It works like a charm even when debugging.
Re:Vimconf 2021 – Oct 29, 30 by warent on Friday October 29, 2021 @09:57PM (#29045353)
I've recently picked up vim the past couple weeks. Finding that it is very pleasant in many ways, though there are still some occasions where it feels like being very stubbornly inefficient to refuse to use a mouse. Does that feeling ever go away?
Re:Vimconf 2021 – Oct 29, 30 by lytedev on Friday October 29, 2021 @09:59PM (#29045362)
It does. But use a mouse if you want to!
Re:Vimconf 2021 – Oct 29, 30 by keeganpoppen on Friday October 29, 2021 @10:41PM (#29045550)
there are builds (macvim, etc) that are good with mice, if it bugs you too much. obviously, the terminal-oriented versions wouldn't do great on this front (as far as i'm aware). i find the mouse mostly nice for scrolling (which i believe does work for me for neovim on arch linux in dwm, but ymmv) at this point, but, yes, for the most part that feeling subsides when you really start to grok the navigation in normal mode (by paragraph, etc.)
Re:Vimconf 2021 – Oct 29, 30 by ImprovedSilence on Friday October 29, 2021 @09:59PM (#29045357)
:set mouse=a
Re:Vimconf 2021 – Oct 29, 30 by kmarc on Friday October 29, 2021 @09:59PM (#29045356)
Yes
Re:Vimconf 2021 – Oct 29, 30 by kmarc on Friday October 29, 2021 @10:03PM (#29045372)
Actually, it's even better (or worse): you'll become increasingly annoyed using other applications, where there should be a very "native" keyboard-only command mode or at least mouse-free method to do stuff, but there isn't.

I'm looking at you GtkFileChooser (or almost any GUI file browser for that matter)

Re:Vimconf 2021 – Oct 29, 30 by tooltower on Friday October 29, 2021 @11:02PM (#29045637)
I love that Firefox desktop can start searching with a '/' keystroke! I think Chrome can do it too, but I can't recall.

Hopefully other applications will pick up more of these over time

Re:Vimconf 2021 – Oct 29, 30 by fileeditview on Saturday October 30, 2021 @11:01AM (#29049298)
If you didn't know it check out the Tridactyl plugin for firefox: https://addons.mozilla.org/en-US/firefox/addon/tridactyl-vim...

Highly recommended.

Re:Vimconf 2021 – Oct 29, 30 by sigzero on Friday October 29, 2021 @10:11PM (#29045408)
This is so true. I shout to the heavens when having to use another editor at work and thinking "doing this in vim" would go faster.
Re:Vimconf 2021 – Oct 29, 30 by cpuguy83 on Friday October 29, 2021 @10:03PM (#29045373)
How do you exit the conference?
Re:Vimconf 2021 – Oct 29, 30 by keeganpoppen on Friday October 29, 2021 @10:42PM (#29045557)
either :q! or :x, depending on how it goes xP
Re:Vimconf 2021 – Oct 29, 30 by forgotmypw17 on Friday October 29, 2021 @10:37PM (#29045528)
I just found about this here.

If I were to give a talk, I would do it on qutebrowser.

If you like using Vimium, you owe yourself to try out qb, where keyboard gets first class in the application, not second-class injected into some pages with JS.

Re:Vimconf 2021 – Oct 29, 30 by boogies on Friday October 29, 2021 @11:16PM (#29045706)
> qb, where keyboard gets first class in the application

No need to contribute to the Chromium monopoly, luakit (what this comment’s sent from) and some other browsers (off the top of my head: nyxt and, to varying extents, Palemoon, lynx, and eww + evil-mode) offer the same thing.

Re:Vimconf 2021 – Oct 29, 30 by forgotmypw17 on Saturday October 30, 2021 @02:29AM (#29046519)
I don't have much experience with nyxt or luakit, but the other browsers do not even come close to these features:

All the keyboard shortcut always work, not just once a tab that's allow-listed has been loaded and JS has been injected into it.

All the settings, including e.g. tab position, fonts, tab loading indicator colors, etc. are configurable via :set

All keys are bindable to all commands via :bind

JavaScript, image loading, etc can be toggled globally, per domain, or for individual pages with keyboard shortcut.

Also, there is an amazing support channel on IRC.

I sympathize with your dislike of the Chrome monopoly. I test my websites in Lynx, Links, AND w3m, not to mention Netscape, IE, Opera, Firefox, PaleMoon, Waterfox, Safari, and many others. However, I also want a usable and performant browsing experience -- something Chrome definitely does not provide, but qb does. I don't think it's anywhere close to being Chrome, it is way better.

Re:Vimconf 2021 – Oct 29, 30 by boogies on Saturday October 30, 2021 @11:06AM (#29049338)
Luakit, Pentadactyl, and I think nyxt (the only one I haven’t tried) all offer everything you describe, except that their IRC channels are pretty sleepy, some of luakit’s configuration requires you to edit ~/.config/luakit/rc.conf (a lua filen with all the power that provides, but simple enough to understand without knowing the language) and :restart (which preserves tabs and scroll positions, though not all JS state), and I don’t remember per domain/page JS toggles in Pentadactyl (though global JS toggle worked, and luakit’s per domain JS toggle is great and global toggle fine).

Anything Chromium based is virtually as bad as Chrome in terms of increasing the engine’s market share, making it the de facto standard and making the majority of web devs test their sites less or not at all on other engines (I appreciate you being an exceptional dev in that regard, but I’d appreciate more you doing your small part to influence all the other devs of the sites you use).

Re:Vimconf 2021 – Oct 29, 30 by forgotmypw17 on Saturday October 30, 2021 @02:48PM (#29051296)
Well, FWIW, I've been using Firefox 66.x for the past few months, the best I have found for Ubuntu 14.x, which is what came with my current primary device. :)
Re:Vimconf 2021 – Oct 29, 30 by bigdict on Friday October 29, 2021 @11:08PM (#29045665)
Not to start a holy war here but I recommend learning both Vim and Emacs just to appreciate the strengths and weaknesses of both. Both editors have built-in tutorials you can cover in one day.
Re:Vimconf 2021 – Oct 29, 30 by boogies on Friday October 29, 2021 @11:35PM (#29045783)
Probably best to learn Emacs first, because as a lazy vi user trying to learn Emacs I've really struggled. I've given up on the Emacs tutorial multiple times, it hurts my fingers and I really only want to use Emacs with evil-mode, but there doesn't seem to be a tutorial for that use case. Evil-mode does come with its own evil-tutor, but it seems to be just a lightly edited vimtutor with very little Emacs-specific information.

(Not to mention that installing evil in vanilla Emacs requires too much hassle, including first manually adding melpa as a package repo — which drove me to spend a lot of time trying to make do with viper mode — and later choosing yet another package to be able to redo, unless you use the unreleased Emacs 28. That pain is probably my fault for giving up on Doom because its support chat requires a nonfree client, and for not trying spacemacs yet.)

Re:Vimconf 2021 – Oct 29, 30 by auslegung on Saturday October 30, 2021 @12:24PM (#29049988)
I gave up trying to learn Emacs the “right way” and went from Neovim to Doom Emacs and was shocked at how quickly I became more productive than I was with Neovim
Re:Vimconf 2021 – Oct 29, 30 by I_complete_me on Saturday October 30, 2021 @08:51AM (#29048382)
I've been using Doom Emacs for a while now and never once required "support chat". What is the "nonfree client" you refer to? Where would I access it if I needed it?
Re:Vimconf 2021 – Oct 29, 30 by boogies on Saturday October 30, 2021 @10:42AM (#29049134)
Re:Vimconf 2021 – Oct 29, 30 by bigdict on Saturday October 30, 2021 @10:37AM (#29049094)
If you are on a Mac, make sure to map Caps Lock to Control and Command to Meta. Otherwise I agree most key combinations are painful.
Re:Vimconf 2021 – Oct 29, 30 by boogies on Saturday October 30, 2021 @11:08AM (#29049359)
I’m on GNU with X11, and my Caps Lock key is already mapped to Escape when tapped and Super when held, so I don’t have space for another Control unless I make holding Tab, Enter, \ or something be it.
Re:Vimconf 2021 – Oct 29, 30 by iamevn on Friday October 29, 2021 @10:52PM (#29045604)
What do you do when you solve a problem with a macro and then find that you need to do that a bunch more across other files? Using vim non-interactively always feels awkward
Re:Vimconf 2021 – Oct 29, 30 by chrismorgan on Friday October 29, 2021 @11:11PM (#29045681)
Open all the files in Vim either by starting that way or with something like :args, then :bufdo normal @@ to execute the most recently executed macro on all buffers.

On occasions when I’m doing things more iteratively (because I’m using a few macros and personal judgement), I commonly end up with :wn<Enter> in one of the macros.

Re:Vimconf 2021 – Oct 29, 30 by gen220 on Friday October 29, 2021 @11:03PM (#29045642)
Not sure if this is rhetorical, but you can (1) use rg -l to open a bunch of files in vim (2) qq make change, select next pattern, esc. (3) qr 100@q :bufferdelete esc (4) 100@r

If it’s a simple replace symbol, its easier to do it with rg -l and sed -i, of course.

Re:Vimconf 2021 – Oct 29, 30 by User23 on Friday October 29, 2021 @10:41PM (#29045545)
What’s the vim community’s take on kakoune[1]?

[1] http://kakoune.org/

Re:Vimconf 2021 – Oct 29, 30 by thih9 on Friday October 29, 2021 @11:10PM (#29045674)
As a vim user (sample size one) I’m not tempted to try it due to differences, especially:

> Kakoune’s grammar is object followed by verb, combined with instantaneous feedback [in vim, it’s verb followed by object]

> vi treats moving around and selecting an object as two different things. Kakoune unifies that, moving is selecting. w does not just go to the next word, it selects from current position to the next word

(source: http://kakoune.org/why-kakoune/why-kakoune.html )

The increased interactivity seems nice but the loss of backwards compatibility and having to relearn and retrain basic commands seems not worth it to me.

Re:Vimconf 2021 – Oct 29, 30 by llimllib on Friday October 29, 2021 @11:06PM (#29045659)
Hard to speak for everybody, but I think a common opinion is that it's a neat project that has some pluses and minuses and doesn't seem to be worth the effort to switch to.
Re:Vimconf 2021 – Oct 29, 30 by gen220 on Friday October 29, 2021 @11:14PM (#29045694)
I don’t know if anyone can speak for the whole community. Personally, I use vim for a similar reason that I use Postgres. It’s open source and well-tested. The rough edges are extremely well known, and relatively polished or padded.

And, if a feature is desirable enough, I know it’ll end up as a vim feature sooner or later. Like JSONB, timescaledb, etc. for PG.

Kakoune looks like it has some cool features! They’ll probably end up in Vim (or nvim) eventually.

Re:Vimconf 2021 – Oct 29, 30 by lawn on Friday October 29, 2021 @11:23PM (#29045725)
Seems good, but the vast amount of neovim plugins I use makes a switch very unlikely.
Re:Vimconf 2021 – Oct 29, 30 by clay10 on Friday October 29, 2021 @10:47PM (#29045577)
Primeagen is a great presenter. I caught this at a good time, looks like its about to start again.