Live data from Hacker News

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

vim.so

21–30 of 283 posts

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

#22

Do macros -> delete % break it? I tried to race the first exercise by setting up a macro to speedrun the first example and i got something where multiple % showed up

I guess it does! Haven’t seen anyone do this before. I’ll look into fixing this though!

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

#23
post #20

Show HN: I built an online interactive course that helps you learn vim* faster *You have a small typo in your title: should be spelled "emacs" ;) Kidding aside, the course is fun, nice work. Per other comments in the thread, if you want to integrate vim muscle memory and browsers, check out the Vimium extension for Chrome (granted, I've overwritten the defaults with emacs, but the idea has still been helpful and mini…

Emacs tutorials can be one line: "ctrl-x ctrl-c".

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

#24
I know I felt a constant social pressure to learn vim or emacs over the years in order to fit in with those religions.

I gave in to that social pressure early on. But even 30 years ago in the early 90s when I started learning vim (and Linux), vim and emacs were very dated programs.

Over the course of thirty years I have managed to finally learn how to set up syntax highlighting, terminal colors, and spaces vs tabs and do a basic cut and paste operation. But the cut and paste never works in a sensible way for me and I always end up having to fix something after pasting. So I am probably still doing that wrong after thirty years. Lol.

I suggest using sshfs or Docker and then you can just use a graphical client. Even gedit is a huge advantage over vim in my opinion (especially if you also have fish in another window). I like how lightweight and simple it is and I think it's really underrated. But also VSCode, Sublime, maybe Atom. Maybe WebStorm.

There is nothing wrong with using nano in the terminal. It's more modern than vim and probably going to be much more productive. I recommend if you are embarrassed about using nano and someone asks, think of it as if someone asked you if you are Christian or Jewish. You can just say you are agnostic about editors, and use a modern tool.

Also take a look at TextAdept in the terminal. It is customizable with Lua.

I really like Jupyter Notebooks for lots of things. It's a great implementation of literate programming, especially if you take advantage of the markdown to explain things thoroughly. Of course a lot of teams are not going to like that but there are projects where you can.

Back in the early 90s there was this thing called Borland Turbo Pascal which had things like mouse usage, automatic syntax highlighting, F1 for instant contextual help, an integrated debugger. Those were the days. Lol. You can configure vim to do all of those things in kind of a janky way, but it's so convoluted, I feel like they should award a PhD if you achieve that. And they don't. So it's not worth it.

People love to glorify the "power" of vim commands. But it's not that way because the original author knew some secret to power editing. It's that way by default, because when it was created, commands and modes were the paradigm by default because of historical terminal limitations. A few people were still using Teletype at that time. Real-time editing was not even a thing.

The terminal they initially developed vi on did not have separate cursor keys. That's why it doesn't use cursor keys, not because it's some deliberate choice they made to save time and be more "advanced".

http://xahlee.info/kbd/keyboard_hardware_and_key_choices.htm...

I just feel like not only are people repeating the mistakes of their fathers, but even their grandparents at this point. It's not 1978 anymore. It's 2021.

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

#25

This is great! Another great resource I gotta plug is https://github.com/ThePrimeagen/vim-be-good . Essentially the same but it's a native vim plugin. It's free, doesn't require a login, and did I mention it's a native vim plugin?

This guy also streams on vim topics frequently on Twitch.

https://www.twitch.tv/theprimeagen

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

#26
post #20

Show HN: I built an online interactive course that helps you learn vim* faster *You have a small typo in your title: should be spelled "emacs" ;) Kidding aside, the course is fun, nice work. Per other comments in the thread, if you want to integrate vim muscle memory and browsers, check out the Vimium extension for Chrome (granted, I've overwritten the defaults with emacs, but the idea has still been helpful and mini…

Emacs tutorials can be one line: "ctrl-x ctrl-c".

So can vim by typing: vimtutor

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

#27
post #20

Show HN: I built an online interactive course that helps you learn vim* faster *You have a small typo in your title: should be spelled "emacs" ;) Kidding aside, the course is fun, nice work. Per other comments in the thread, if you want to integrate vim muscle memory and browsers, check out the Vimium extension for Chrome (granted, I've overwritten the defaults with emacs, but the idea has still been helpful and mini…

Emacs tutorials can be one line: "ctrl-x ctrl-c".

An Ode to Quitting Vim:

ESC

Ctrl-C

ESC

Ctrl-Q

ESC

Ctrl-Z

* dangit, suspended *

fg

ESC

:q

E37: No write since last change (add ! to override)

!

E37: No write since last change (add ! to override)

!:q

E37: No write since last change (add ! to override)

@!&^#!&!!:q

E477: No ! allowed

Reboots Server

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

#28

Hate to be a negative Nancy, but on a bog standard Chrome on a bog standard Windows 10, in the first exercise the HJKL keys do nothing. The arrow keys do work...

    noremap  
    noremap  
    noremap  
    noremap  
There, now your arrow keys do nothing, too! (This is a good way to "train" yourself to not depend on the arrow keys.)

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

#30
post #24

I know I felt a constant social pressure to learn vim or emacs over the years in order to fit in with those religions. I gave in to that social pressure early on. But even 30 years ago in the early 90s when I started learning vim (and Linux), vim and emacs were very dated programs. Over the course of thirty years I have managed to finally learn how to set up syntax highlighting, terminal colors, and spaces vs tabs an…

That's fine!!! I don't think vim (esp. neovim) is janky at all, but part of it is how your brain works. If you want to use nano or vscode or whatever, there shouldn't be any social pressure.

I think it comes down to how people like to use their tools and how they like to shape their working environment. I've gotten my vim/linux machines into a place where editing code is comfortable, and I'd love to share it with people, but I understand that they may not want to do it. And that's fine!

Use what works for you to get your work done!

Post reply on HN