Live data from Hacker News

Learn Vim (2021)

github.com

61–70 of 215 posts

Re: Learn Vim (2021)

#61

I can handle basic editing in vim and I have given real tries to use it as my main text editor but I just cannot find a way to get as comfortable in vim as I can in VS Code.

Speaking as a vim user who can't get comfortable in VSCode - use VSCode then, it's a great editor!

Re: Learn Vim (2021)

#62
post #58

No one should be learning Vimscript at this point. That language should have died a long time ago. A new user coming to the Vim ecosystem in 2023 would be best served by using Neovim with Lua.

Vimscript is still really great for making edits and automating odd little things. I find it especially useful for refactoring

Re: Learn Vim (2021)

#64
post #58

No one should be learning Vimscript at this point. That language should have died a long time ago. A new user coming to the Vim ecosystem in 2023 would be best served by using Neovim with Lua.

you still need to know vimscript for extending with lua.

Re: Learn Vim (2021)

#65
I dunno, I never sat down to learn vim, just used it every day for a couple years. I’m not one of those wizards who is, like, answering stack overflow questions or writing wiki articles, but I get the job done. Is it necessary to learn Vim? Seems like a chore.

Is the text editor really a bottleneck for anyone? I find that no matter how slow I type, I need to spend more time thinking of what to type anyway, if I’m doing anything interesting.

Re: Learn Vim (2021)

#66

I can handle basic editing in vim and I have given real tries to use it as my main text editor but I just cannot find a way to get as comfortable in vim as I can in VS Code.

Pick a tool and learn it well. Doesn’t matter which one, really, so long as you’re productive with it.

Re: Learn Vim (2021)

#67

I dunno, I never sat down to learn vim, just used it every day for a couple years. I’m not one of those wizards who is, like, answering stack overflow questions or writing wiki articles, but I get the job done. Is it necessary to learn Vim? Seems like a chore. Is the text editor really a bottleneck for anyone? I find that no matter how slow I type, I need to spend more time thinking of what to type anyway, if I’m doi…

I similarly have mostly not learned vim, but every now (usually on fridays) I spend a bit of time seeing if there's an easier way to do something. My recent learning was :quickfix.

I normally build in a terminal anyways so this was a pretty nice little speedup for iterating on static analysis results or a build problem.

Re: Learn Vim (2021)

#68

I dunno, I never sat down to learn vim, just used it every day for a couple years. I’m not one of those wizards who is, like, answering stack overflow questions or writing wiki articles, but I get the job done. Is it necessary to learn Vim? Seems like a chore. Is the text editor really a bottleneck for anyone? I find that no matter how slow I type, I need to spend more time thinking of what to type anyway, if I’m doi…

Many years ago, decades actually, I used TextEdit + services shortcuts to filter text through grep, sed, awk. I found even syntax highlighting a distraction.

Then I saw someone using Vim. I was instantly hocked. The sheer speed of everything happening in the screen, I needed to learn that. And so I did and it’s been an amazing ride.

It’s a pain at the beginning, the amount of time I invested in my .vimrc will probably never payoff, mathematically speaking. But the joy and delight you get from using it everyday, the freedom and efficiency is just addictive.

It’s not for everyone, I was raised on the Mac paradigm, where “modes are evil”, so it was a step learning curve. But few programs have brought me this much joy and excitement over the years.

Re: Learn Vim (2021)

#69

I dunno, I never sat down to learn vim, just used it every day for a couple years. I’m not one of those wizards who is, like, answering stack overflow questions or writing wiki articles, but I get the job done. Is it necessary to learn Vim? Seems like a chore. Is the text editor really a bottleneck for anyone? I find that no matter how slow I type, I need to spend more time thinking of what to type anyway, if I’m doi…

It’s not a bottleneck for anyone.

Some people just like playing with tools. They do it for loads of reasons, but end of the day it’s basically a hobby tangentially related to software development.

I torment a friend of mine who talks all the time about VIM and their most recent config/workflow. But end of day, he’s happy and having fun while being productive.

Re: Learn Vim (2021)

#70

Earlier quoted context omitted.

Having only used Nano since picking up Linux 2 years ago, I’m not sure what I’m missing. Can you make a case for me to learn Vim?

- Fuzzy file search - I can't find a way to do this in nano? Where you can search a whole directory by name for the file you want to open. This is very useful in larger projects when you need to jump about a lot. - LSP and all its uses - jump to definition is a big one. - Window management - while you can use a multiplexer, using one session allows copy/paste to work, saves your file/search/command history, etc. - Wh…

> While often overstated, it is undeniably more efficient... once you've learnt it.

And on this note, I'd recommend not jumping in and trying to learn everything. Too easy to get overwhelmed.

Start with the bare basics and treat it like nano with syntax highlighting, then start learning and getting used to its broader functionality in small bursts.

Post reply on HN