Live data from Hacker News

What Is Vim?

blog.jonas.foo

141–150 of 179 posts

Re: What Is Vim?

#141

> There's a Vim mode in every single mainstream code editor out there. And they’re always frustratingly incomplete and/or buggy. Some motions will be unimplemented, or will behave incorrectly, especially with regards to boundaries around whitespace inclusion or exclusion in a motion. Things you added to Vim and got used to are unavailable, and so your ysa") to put parentheses around the string your cursor is on just…

There's a vscode extension that embeds NeoVim and just uses VSCode UI as a front end to delegate key presses to: https://github.com/vscode-neovim/vscode-neovim This yields a better experience than the old half baked VSCode vim emulation.

Why does this not work with VSCodium as well?

Re: What Is Vim?

#142

Helix uses a selection-first action model: you select the word/paragraph/whatever you want to perform an action on, then you change/delete/whatever on that selection. I think this is more intuitive than the "verb object" model Vim uses: if you get your selection wrong in Vim, you then need to undo the action and try again. In Helix, I can see what I am about to manipulate before I make the action. I think at this poi…

Helix splits the "select" and "verb" portions into two separate actions, so you can't easily repeat the last whole action (which you can do in Vim by pressing the dot key). Which one is more intuitive is probably subjective, but personally, I find "dip -> delete inside parenthesis" far more intuitive (and closer to my line of thinking) than "select inside parenthesis. delete selection".

The visual-first paradigm means you need to repeat selection, not action, then act on multiple visible selections

Re: What Is Vim?

#143

Earlier quoted context omitted.

And meanwhile in every thread or article about vim, it is very rare to mention remapping Caps Lock to Escape (or the other lesser IMHO lesser options ) even though one third of user do it. The other two third are deluded tool fetishists that are ready to suffer that their most important key is the furthest away from the home of row because "you get used to it" even if that's just an unfortunate historical accident. I…

> it is very rare to mention remapping Caps Lock to Escape I change mine to Ctrl. This way escape for me is Ctrl + [. Ctrl is too useful to be in an awkward position.

Pinky sideways is an akward position, Ctrl would be better remapped to a thumb-accessible key

Re: What Is Vim?

#144

I am too stupid for Vim. The bottleneck is my brain, not my typing speed.

Here is some material to challenge that idea: https://danluu.com/productivity-velocity/ Is also funny to phrase it in terms of bottlenecks because bottleneck optimization is an 80/20 approach to performance. People who are serious about perf don’t practice it. 80/20 is good for once a month tasks. When it comes to the primary work I do everyday I don’t want to leave 20% on the table.

I spend maybe 90-95% of my time thinking, looking up existing code, reading documentation, solutions, and code exemplars online, and trying to engineer a solution either in my head or on paper. I spend at most 10% actually typing. It's just not something that I've really ever felt has slowed me down.

Re: What Is Vim?

#145
Is anyone here using Lazyvim? I switched to this from VS code and it feels much more productive and lightweight on my computer.

I never got into VIM before until I saw some Youtube personality using Lazyvim.

Re: What Is Vim?

#146

Earlier quoted context omitted.

Here is some material to challenge that idea: https://danluu.com/productivity-velocity/ Is also funny to phrase it in terms of bottlenecks because bottleneck optimization is an 80/20 approach to performance. People who are serious about perf don’t practice it. 80/20 is good for once a month tasks. When it comes to the primary work I do everyday I don’t want to leave 20% on the table.

I spend maybe 90-95% of my time thinking, looking up existing code, reading documentation, solutions, and code exemplars online, and trying to engineer a solution either in my head or on paper. I spend at most 10% actually typing. It's just not something that I've really ever felt has slowed me down.

As a modern day tech person, you only spend 4 hours a week on your keyboard across browsers, email, messaging, command line, etc? What about your personal life?

Even then, learning Vim could improve your computer interactions easily by 10%. That's 40 min a week or ~34 hours in a year.

https://xkcd.com/1205/

Re: What Is Vim?

#147
post #141

Earlier quoted context omitted.

There's a vscode extension that embeds NeoVim and just uses VSCode UI as a front end to delegate key presses to: https://github.com/vscode-neovim/vscode-neovim This yields a better experience than the old half baked VSCode vim emulation.

Why does this not work with VSCodium as well?

Doing a quick search in the repo i see multiple issues where people report using vscodium but none of them seem to report any immediate breakage. If you're experiencing a problem with it, it is only in vscodium?

Re: What Is Vim?

#148

> There's a Vim mode in every single mainstream code editor out there. And they’re always frustratingly incomplete and/or buggy. Some motions will be unimplemented, or will behave incorrectly, especially with regards to boundaries around whitespace inclusion or exclusion in a motion. Things you added to Vim and got used to are unavailable, and so your ysa") to put parentheses around the string your cursor is on just…

> > There's a Vim mode in every single mainstream code editor out there. Sadly, because of the unchecked proliferation of apps added to the software enterprise, this is not really true. A "modern" software organization probably has something like: Notion, Gdocs, Paper, Slack, Figma, Jira, and Github. If they have vim mode at all, (most don't) they require learning entirely new UI patterns for each app - the sheer was…

I’m using GhostText/AtomicChrome to edit any browser test field using a real editor (in my case Emacs). I recommend trying it if you have this challenge.

Re: What Is Vim?

#149

I've been using vscode in java because of the cumbersome file navigation in bash. Is there easy full tree navigation in vim? It may also be because the terminal view is much smaller than vscode's smaller navigation font so I can see much less of the file tree in a terminal program such as ranger. I also never really mastered windows although I did master vim buffers. I do use tmux.

In my workflow I've integrated both ranger file manager and fzf as file pickers: fzf when I'm inside a git repo ('git ls-files | fzf' - but doesn't have to be this way), and ranger for elsewhere. Both ranger and fzf are amenable to being used for this purpose, so all it takes is a couple of lines of hand-rolled vimscript - no need to wait for a third party integration plugin to drop.

Re: What Is Vim?

#150

> There's a Vim mode in every single mainstream code editor out there. And they’re always frustratingly incomplete and/or buggy. Some motions will be unimplemented, or will behave incorrectly, especially with regards to boundaries around whitespace inclusion or exclusion in a motion. Things you added to Vim and got used to are unavailable, and so your ysa") to put parentheses around the string your cursor is on just…

> > There's a Vim mode in every single mainstream code editor out there. Sadly, because of the unchecked proliferation of apps added to the software enterprise, this is not really true. A "modern" software organization probably has something like: Notion, Gdocs, Paper, Slack, Figma, Jira, and Github. If they have vim mode at all, (most don't) they require learning entirely new UI patterns for each app - the sheer was…

vim in obsidian?
Post reply on HN