Live data from Hacker News

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

vim.so

161–170 of 283 posts

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

#161
post #31

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

Looks like "vimtutor" is primarily text explaining the hotkeys.

For me, the bottleneck to picking up vim has not been merely knowing the hotkeys, but more internalizing the commands and building muscle memory.

The interactive game format of this website could possibly solve that, so it appeals to me.

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

#162

Earlier quoted context omitted.

In vim, most commands take the form "[count] operator [count] motion". When you learn a new operator, you can use it with any motion that you know and vice versa; and you can add a count to either. To give a few examples: - gqip to format (gq) a paragraph (ip). - g?g? to ROT13 a line (doubling the operator makes it operate on the current line — in this case, g?? also works). - y2w to copy (y) the next two words (2w)…

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…

> Do you write all of your emails in vim and browse the web on the command line as well?

Yes! I use mutt + vim. Composing emails in a textarea is a terrible experience by comparison. (Respect to emacs mail mode users, that’s a great option too.)

I also use w3m for browsing technical stuff, and use tmux for copy & paste into vim.

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

#163
post #130

Earlier quoted context omitted.

> " by the way why on earth does this monstrosity want me to use hjkl? That don't make any sense!!!!" Indeed, why? Using hjkl is about the worst way to move around in vim...

/% qqnxq19@q is clearly the solution to the "navigate to % and delete it"

lolwut

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

#164

Well I think the nice point of doing excercise in a web browser is that you can quickly switch to another tab and search for daring questions such as " by the way why on earth does this monstrosity want me to use hjkl? That don't make any sense!!!!" https://catonmat.net/why-vim-uses-hjkl-as-arrow-keys For a mostly data/SQL guy wanting to learn more about coding it still don't make much sense but at least I know why a…

The most shocking thing to me was that after weeks of struggling to get used to hjkl for navigating in vim, I realized that I had already been using jk for navigating up and down on numerous sites (reddit, gmail, twitter) for YEARS.

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

#166
post #65

now it is time to brag on how gets the best scores in Vim I think :) : Your average time was 0.32s. Click below to share your time on twitter and compete with your friends.

/%x Perhaps? haha

Yep. Then nxnxnxnxnxnxnxnxnxnx.

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

#167

This is neat but newcomers beware. This is the easy part. Setting up your config and plugins is why most people go back to ides

Aren't you supposed to avoid plugins and config so that vi/m will be familiar everywhere you go? That's the advice I've gotten on this board.

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

#168
post #99

Earlier quoted context omitted.

Ok, I'm sorry but I believe you are incorrect. People do not have different brains that way. Just like they don't have different 'learning styles'. That sort of thing is a discredited myth. I also think that it is objectively true and not only fair but also important for people to start to point out how bad these interfaces are. At some point traditions start to become a drag on society. One of the core principles of…

I don't understand that line of reasoning, and it seems like you're being obstinate for the sake of being obstinate. I hope you understand that even though you might feel one way, other people may think another and there's no orthodoxy. Have a good day.

Of course people have different opinions.

That's not what you said though. You said brains work differently.

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

#169

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?

In vim, most commands take the form "[count] operator [count] motion". When you learn a new operator, you can use it with any motion that you know and vice versa; and you can add a count to either. To give a few examples: - gqip to format (gq) a paragraph (ip). - g?g? to ROT13 a line (doubling the operator makes it operate on the current line — in this case, g?? also works). - y2w to copy (y) the next two words (2w)…

> but you could use y2aw if you were in the middle of a word.

Wow, how does it work? Why y3aw doesn't fully work for 3 words (it captures space before the word I started with)?

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

#170

Earlier quoted context omitted.

In vim, most commands take the form "[count] operator [count] motion". When you learn a new operator, you can use it with any motion that you know and vice versa; and you can add a count to either. To give a few examples: - gqip to format (gq) a paragraph (ip). - g?g? to ROT13 a line (doubling the operator makes it operate on the current line — in this case, g?? also works). - y2w to copy (y) the next two words (2w)…

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 not worth the time.
Post reply on HN