Live data from Hacker News

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

vim.so

191–200 of 283 posts

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

#192

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.

My approach is to just use all the tools. I use clumsy IDEs when I really need powerful debugging. I use vim when I need powerful editing/macros. Sometimes I do code browsing with ctags. Sometimes I do code browsing with Eclipse. There's no need to be a purist.

Except vim. No plugins into vim. That is sacrilege.

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

#193
post #91

Easiest way to learn vim is to force yourself to use vim

The only time I use vim is when I am forced to use it.

Then you will never learn vim. Which is fine, not everyone needs to be a vim ninja.

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

#194

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?

Because the text motions, once learned, are extremely powerful and will cause your relationship to textual data to fundamentally change. All while avoiding wrist injury, because some critical keys (f, t, g, j, q) are so lettered due to the location on the keyboard. Think of your keyboard as more like a piano than an alphabet.

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

#195
post #188
post #184

I know that vim is particularly enjoyed. The site looks nice and I wish you the best luck with this. But for beginners, I now recommend micro as a console text editor ( https://github.com/zyedidia/micro ). It's a one line install with all the shortcuts and display that have become a standard across editors.

Does anyone know who had the bright idea to replace vi with nano as the standard text editor and why this became some sort of standard? I really don't get it. Vi is unintuitive and unfamiliar to unix newebies, but at some point every even half-competent person on unix could use it enough to at least do simple config file changes. Plus, if you took time to learn it properly, you actually knew a quite capable editor. A…

The logic I always thought was that if you are working at the console on a server and dealing with the default $EDITOR, you most likely are doing some kind of emergency maintenance. In this scenario, you want to throw the most gentle/easy-to-use editor at the user to ensure they don't accidentally overwrite a file or something else because they've been trying to bring prod back up all night and can't see straight.

If you use the box for more than 5 minutes a year, you'll probably change it to vim or whatever you prefer anyway.

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

#196
post #130

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…

> " 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...

When you consider the concept of home row keys and touch typing I find it very natural, actually. Its ergonomic and very fast if you get into the habit of resting your fingers on the home row.

Though you may have been alluding to more powerful movements!

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

#197

Earlier quoted context omitted.

> 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)?

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.)

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

#198

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.

Not when using Dvorak, here's how it maps from Qwerty: H->J J->C K->V L->P Still works pretty well, i've gotten used to it.

Fortunately, j & k are next to each other, and I never noticed any disconnect in vim w/Dvorak. I never use h & l -- mostly space, w/W, or b/B. But I also learned Dvorak before vim, so I never got used to hjkl.

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

#199

Earlier quoted context omitted.

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…

Opposite problem: I get so used to hjkl, I screw up everywhere else for awhile.

I got a fancy keyboard with layers and set one to have arrow keys on hjkl so I can use them everywhere.
Post reply on HN