Live data from Hacker News

Show HN: I built an online interactive course that helps you learn Vim faster

vim.so

241–250 of 283 posts

Re: Show HN: I built an online interactive course that helps you learn Vim faster

#241
post #136

Earlier quoted context omitted.

> - 'I want to surround this word in parentheses. (Visual-mode (region selection) Around Word Surround-with Matching-parens)' Holy shit, thank you. I've been looking for something like this for half a decade and never found it (I don't even know how I missed it!)

I believe Vim-proper needs a plugin for that behaviour, so keep that in mind.

bcw()P will do it without plugins.

Re: Show HN: I built an online interactive course that helps you learn Vim faster

#243

Earlier quoted context omitted.

I appreciate the tutorial, but I probably do already "know" vim, but it's not part of my muscle-memory. Context switching to something like writing an email or filling out a web form really makes it not worth getting too comfortable with all these esoteric shortcuts. Do you write all of your emails in vim and browse the web on the command line as well? From reading the rest of the replies, it sounds like the real ans…

Sorry — I never know when to assume a large amount of knowledge or a small amount of knowledge. The worst for me is "ctrl-w" to delete a word backward in Insert mode, and to delete a tab in the web browser :) Vim is in my muscle memory and it's faster for me, so that's why I use it. It might be faster for you and it might not be faster for you, and if you don't need the portability for POSIX machines it's probably no…

CTRL+W messes me up sometimes. when i'm in split screen mode with two panes i'll often tap CTRL+W twice to switch panes. very confusing when you forget to exit insert mode.

Re: Show HN: I built an online interactive course that helps you learn Vim faster

#244

Earlier quoted context omitted.

y2iw should copy without enclosing spaces. My mnemonic is "inner word" vs. "a word".

Playing around with this, [count]iw seems to have some really strange behavior — I need to do 3iw to select two words, 5iw to select three words, etc.? I'm not sure if I'm missing something. (I normally don't use many text objects; bdw is in my muscle memory instead of daw, for example.)

perhaps whitespace token is considered a word:

2 words 1 spaces = 3 tokens 3 words 2 spaces = 5 tokens 4 words 3 spaces = 7 tokens ... maybe?

Re: Show HN: I built an online interactive course that helps you learn Vim faster

#246

Does anybody have recommendations on how to go from "comfortable" to "expert"? I've been using vim as my daily driver via the intellij plugin for a few years. I mostly just navigate and never do anything complicated, it gets the job done. For example I mostly use w, d, o, hjkl, y, p, w, b, t and recently discovered the `c+i` combo which is awesome. But I feel like there's still a side of vim I haven't conquered. Any…

Read the user manual. I'm not trying to be snarky - the user manual is explicitly something that isn't the same as the reference and the user manual is called out as the next step after `vimtutor`.

Start with `:h user-manual` and go from there!

Re: Show HN: I built an online interactive course that helps you learn Vim faster

#247
post #210

Earlier quoted context omitted.

It says this in the 3rd or 4th paragraph: > It is important to remember that this tutor is set up to teach by use. That means that you need to execute the commands to learn them properly. If you only read the text, you will forget the commands! And it's free, not 15 USD or whatever this site is charging.

Okay... but the difference between a piece of text just telling me to use the commands so I remember them versus an interactive trainer that provides a structured setting for me to use them is pretty significant, no?

vimtutor is interactive. It's a text file that tells you what to do inside itself, so you modify vimtutor directly.. you would've known this if you had spent 10 minutes trying it out.

Re: Show HN: I built an online interactive course that helps you learn Vim faster

#248
post #31

Before trying these courses , Please try vimtutor that comes bundled with vim . After practicing with vimtutor , you can try these additional courses.

I started with vimtutor, then installed IdeaVim in all my Jetbrains IDEs, it took me about a week to reach the same level of efficiency I had before. I don't understand how some people can say the learning curve is too steep. Sure it's a bit annoying at first, but it quickly becomes natural, and you don't have to use all features at first. It has allowed me to improve my touch typing a lot. Learning a programming lan…

> I don't understand how some people can say the learning curve is too steep

I am doing fine with vim for basic editing tasks and use it a lot (mostly when I'm already in the command line). But there's just only so many shortcuts I'm capable of memorizing. This is not a problem for me exclusive to vim, of course. In IntelliJ I also sometimes find an amazing new function that I then don't keep using since I've already exhausted my limited "inclination" of learning new shortcuts. Also, I don't think my productivity gains at this point are going to come from faster input anyway. Sorry, vim, it's not you, it's me.

Re: Show HN: I built an online interactive course that helps you learn Vim faster

#249

Can someone please explain to me why I should learn vim? I've made several attempts in my lifetime because I thought there would be some magical "ah-ha" moment, but it never came. Separate modes for command & insert just feels inherently clumsy and slow to me. Is there some other killer feature that can't or hasn't been reproduced by modern editors?

I equate it to touch-typing. Do you think about each keystroke or do you just type? It’s the same way with editing when you’ve learned it. I don’t know that it has to be vim but that’s what clicked with me.

Re: Show HN: I built an online interactive course that helps you learn Vim faster

#250

Earlier quoted context omitted.

HJKL also allows you to keep your fingers on the homerow at all times which is really great. I had issues with RSI that when away when I started using Vim properly. Travelling to the arrow keys now feels like a painful task to me! Of course, as a sibling comment mentioned, hjkl is the worst way to move around--"power users" generally only use them to move a char/line or two.

On the other side, it is probably the most unnecessary inflicted pain for beginners. Even after years of using vim on a daily basis, I can't get used to hjkl and still use the arrow keys. I tried a few times with different approaches, but it never lasted more than a few days. So pushing someone new to use hjkl for navigation is so unnecessary and just kills a lot of motivation for very little value. Starting with del…

Maybe the problem is that you are not supposed to rely solely on hjkl for navigation? Not sure how others use it, but for me most of the navigation are performed with / / search (long range) or f, w, b etc (shorter range, usually with modifiers). hjkl are almost always used in combination with these to adjust the initial / final location of the cursor.
Post reply on HN