Live data from Hacker News

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

vimified.com

191–200 of 265 posts

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

#191
post #180

:set nu / whatever you want to find [return] i *edit stuff and use arrow keys for nav* :wq Or :q to quit without saving That’s all the vim most people need. The fact that less is installed on many more systems than nano is a testament to the bad assumptions too many devs make about who will be using these systems in the future. And yes, it’s not hard to "apt -y install nano" except at work where we have proxies and i…

now I need to use vim to reconfigure apt sources just so I can use a more normal editor Prepare and paste this into your terminal: echo "another line" | sudo tee -a /etc/apt/sources.list Sorry for your pain, but choosing hard ways is a person’s business.

I believe the parent was trying to say that the default editor is the hard option, even though easier and intuitive solutions exist.

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

#192

:set nu / whatever you want to find [return] i *edit stuff and use arrow keys for nav* :wq Or :q to quit without saving That’s all the vim most people need. The fact that less is installed on many more systems than nano is a testament to the bad assumptions too many devs make about who will be using these systems in the future. And yes, it’s not hard to "apt -y install nano" except at work where we have proxies and i…

My problem is I can't use the up/down arrows for nav while editing stuff, it just starts spewing control characters on new lines IIRC.

This is the reason why I like vim-nox

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

#193

So, did it help you finally learn Vim?!

Yes, in a narrow sense. I would say I know it well enough now to edit code faster than using a regular editor.

It would be difficult for a lot of people to say they've fully learned vim though, since it has a lot of things to discover. Many people who've been using vim for years still find out new tricks. This aspect of vim is appealing, in a way.

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

#194

Learning to remap escape to Caps Lock or to jk or what the Ctrl combination are to switch to normal mode should be the first lesson of all vim courses. This was the biggest cognitive discrepancy for me as a vim beginner : What did you use your smarts to create a modal editor while choosing the worst key ever to switch modes!?

> What did you use your smarts to create a modal editor while choosing the worst key ever to switch modes!?

I believe when vi was originally created, the Esc key was often placed to the left of Q, where the Tab key is now located on QWERTY layouts.

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

#195
vimtutor is pretty good!

Besides that once you learn that you enter edit mode by pressing i - ESC to exit it. :w to save, :q to quit and :q! to force quit / quit without saving. Then you can get by just fine.

You can of course do magic with vim, but that's more in the tinkerer territory~

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

#196
post #190

Earlier quoted context omitted.

Hi, I understand where you're coming from. My introduction to vim was through vimtutor and it was free! I agree with your point about muscle memory. Learning !== muscle memory. However it does make it more comfortable to edit code by not having to expend energy remembering the vim command to do something (since you can just focus on editing code). Practicing new vim commands in the interactive editor has helped me us…

Agreed with your comments on muscle memory and very cool project overall. An issue keeping me from wanting to use this: holding down the directional keys doesn't move the cursor multiple times - it's one keypress per movement. In the desktop environment, one can hold 'j' to go down, and since there is so much vertical movement, it's important that that's replicated.

Huh, thanks for letting me know, no one else has mentioned this issue, and I haven't experienced the issue either.

Can you let me know which browser and OS you're using? This seems like an important bug, thank you.

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

#197
post #87
post #32

Earlier quoted context omitted.

> why can't I hit right at the end of a line, and move to the next line? I know this is probably something that sounds like someone too far down the rabbit-hole to see where they came from, but I'm not sure why you'd want to do that. The horizontal movement is probably adjacent to the vertical movement on your keyboard. Just use the appropriate movement to get where you want to go? > Also, why do I have to have a spe…

My answer to all these things is that 90% of the time, I am not using a text editor. I will be writing in Word, or in LyX, or in RStudio, or in a text box. My muscle memory is used to that. You're absolutely right. You do sound far down the rabbit hole! I am used to being able to hold down the right key and traverse my entire document, as far as I like. Why would I want to stop at the end of a line? Any time I'm edit…

I mean it's obviously not the tool for you, so don't use it. I find it for easier to navigate code using the vim modal concept, and can context switch relatively easily when moving over to another editor. I don't think anyone is trying to convert you or will be upset if they fail to do so.

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

#198

Learning to remap escape to Caps Lock or to jk or what the Ctrl combination are to switch to normal mode should be the first lesson of all vim courses. This was the biggest cognitive discrepancy for me as a vim beginner : What did you use your smarts to create a modal editor while choosing the worst key ever to switch modes!?

> What did you use your smarts to create a modal editor while choosing the worst key ever to switch modes!? I believe when vi was originally created, the Esc key was often placed to the left of Q, where the Tab key is now located on QWERTY layouts.

You could also just press the Alt key on some systems, which sends the control code Esc.

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

#199

I once tried to migrate from VS Code to Neovim. I use TypeScript at work, and use many languages for my side projects. But the worst part was making Vim provide with things that you'd expect programming editors to have. So many options, what's best is up to opinion, integrating language servers, getting intellisense to work as you would expect, searching the project folder for file names. Then I realized that all I'm…

How is it that nobody seems to know that every major editor has either vim mode or a vim plugin. I love vim, but I almost never use it directly. I usually use JetBrains IDE with vim plugin. Best of both worlds.

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

#200

I once tried to migrate from VS Code to Neovim. I use TypeScript at work, and use many languages for my side projects. But the worst part was making Vim provide with things that you'd expect programming editors to have. So many options, what's best is up to opinion, integrating language servers, getting intellisense to work as you would expect, searching the project folder for file names. Then I realized that all I'm…

I tried hard to convert from my IDE to vim. I write PHP and rely heavily on for example EA inspections, there is no way to get these in vim. You can do some analysis with either psalm or phpstan, I forget, but in any case that was a show stopper for me.

What IDE are you using? Almost all of them have either vim mode or a vim plugin. I love vim, but I almost never use it directly. I usually use JetBrains IDE with vim plugin. Best of both worlds.
Post reply on HN