Live data from Hacker News

LazyVim

lazyvim.org

421–430 of 537 posts

Re: LazyVim

#421
post #78

I've been using vim for years, switched to neovim, and at this point I'm ready to throw in the towel and just use vscode for anything beyond simple text editing. The amount of work needed to get a basic IDE up and running for your languages of choice, even for commonly used languages such as Python or Javascript, is far too much for someone who wants to get on with their day job or hobby coding and doesn't want to sp…

I dont know.. The argument i read all the time is "i don't want to invest time in vim". But what kind of professional spends hours uppon hours learning his craft (programming), but is unwilling to invest some of those hours into mastering professional tools? What about sharpening the axe? The amount of time i saved by sticking to vim is definitly more that the time i needed to learn it.. IDEs are easy mode and waste…

If someone likes to use vim, then so be it. If someone likes to use VSCode, then so be it. IDEs can also be called productive mode and use the right amount of resources necessary for large projects. They will get the job done, and for many it is the preferred option.

Vim doesn’t have to be the tool you use when there are others. If it was the only tool, I’d agree that people should know it better. Thankfully it’s not the only one.

Re: LazyVim

#422

Earlier quoted context omitted.

I am not talking about learning vim. Of course, that is a huge time investment and you have to make your own judgement if that is worth it (for me it absolutely was, but I was in University with few obligations and lots of time). I am talking purely about going from a vim without IDE-like tooling to one including it. That can be done in an hour.

Still, IMO it can only be done in an hour if you've done it already... You need more time than that for finding the plugin candidates, evaluating them, installing the right plugins, then you need a test run where you lookup the key bindings, on vim it's not as easy to discover features as in a "GUI" IDE.

>on vim it's not as easy to discover features as in a "GUI" IDE.

Unless you find the correct plugin :-)

Re: LazyVim

#423
post #420

I was using neovim but nowdays I just fire up Sublime. neovim remains as a choice when I jump to other servers with SSH. The thing is that when I'm (for example) trying to RE some protocol and have bytes-only view, I move things around quite a lot. And Sublime has a powerfull tool for this: multiple cursors. I can create as many cursors as I need and edit multuple instances/bytes at once.

I dont understand the multiple cursors, is this better than search and replace? I am guessing you are replacing it to the same thing at every cursor, but I guess the value is then that the from could be different at the cursors?

Re: LazyVim

#424
post #211

Earlier quoted context omitted.

datapoint: lazyvim has had 127 releases since it was first released. Which was in november or something like that, maybe just 7-8 months ago.

Yeah, likely to update all the plugins it uses or something. I don't use it so unsure :)

It has a lockfile, so it feels relatively sane, I can update only when I have time. It's been working well.

Re: LazyVim

#425
post #227
post #100

Earlier quoted context omitted.

Don’t even bother using anything but IntelliJ for JVM work. I use Neovim for everything, but not Java/Kotlin.

Same. IntelliJ is just too damn good for JVM work, and specially for Kotlin. jdtls ans other Java langservers are decent, but unfortunately, kotlin_language_server is miles behind IntelliJ.

Not only that, but in my experience everyone else will be using IntelliJ, so the project is usually dependent on IntelliJ in some form. Sometimes subtlely, sometimes not so subtlely. It will usually build with gradle since it has to for CI/CD, but beyond that everytime I worked on a new project I had to fix all kinds of subtle problems that were the result of some config/state that IntelliJ keeps outside the repo and nobody notices because they all use IntelliJ.

Re: LazyVim

#426
post #420

I was using neovim but nowdays I just fire up Sublime. neovim remains as a choice when I jump to other servers with SSH. The thing is that when I'm (for example) trying to RE some protocol and have bytes-only view, I move things around quite a lot. And Sublime has a powerfull tool for this: multiple cursors. I can create as many cursors as I need and edit multuple instances/bytes at once.

I dont understand the multiple cursors, is this better than search and replace? I am guessing you are replacing it to the same thing at every cursor, but I guess the value is then that the from could be different at the cursors?

I use this all the time and you can copy a range of values with multiple cursors and then paste them into the same size range. It's nice for hashes or modifying static lists that all need the same changes, but are annoying to regex for

Re: LazyVim

#427
post #412

Many people complain about the time you need to have a proper vim. In computer security, I learnt to make my own tools, to develop my own script that match what I want to do/scan. For vim, this is exactly the same. I started with Python so my vim became the best Python IDE (for me) and that's all. What I said to junior dev is "Here my vim conf, you are allowed to copy/paste only what you understand". Then I did some…

> Everytime I test vscode, it does not do what I want and when I look into it, I can't configure it correctly. Vim has always my back. Can you expand on this? What specifically does not work for you on vscode?

I don't believe in 10x programmer and know this term only from HN. I live in France and after 10years programming, I never heard a collegue said "I am a 10x programmer". However, I always make sure any git project can be worked on with any IDE. I use vim, some use PyCharm and most of them use VScode and it works fine.

However, I can tell you my main pain point in using VS code vs vim: project switching. Many times I have to go quickly to another project and close it. When I code in vim this this :

ctrl+Z (go back to term) workon project_2 vim ctrl+P (select the file I need to see or quickly edit or show to a colleage to explain) :q! (let's say I didn't edit anything) fg (Go back to my main task)

Did not know how to be that fast to open/close project with a _real_ IDE.

To oppose this, there is one feature I envy of vs code: code in docker through ssh seamlessly. Unfortunately this is not even available in vscodium.

Re: LazyVim

#428
post #78

I've been using vim for years, switched to neovim, and at this point I'm ready to throw in the towel and just use vscode for anything beyond simple text editing. The amount of work needed to get a basic IDE up and running for your languages of choice, even for commonly used languages such as Python or Javascript, is far too much for someone who wants to get on with their day job or hobby coding and doesn't want to sp…

I just want a decent open source native editor with a native GUI. 10+ years ago, when I and almost everyone I knew were on Windows or Linux, this was simple and ubiquitous. UltraEdit, Notepad++, Vim and Emacs of course, etc, there were dozens of options to choose from. Then I and most developers that I know switched to Macs, and now this is an alien concept. There's a dearth of open source Mac development, and much o…

Have you tried VimR — Neovim GUI for macOS? https://github.com/qvacua/vimr

Re: LazyVim

#429
post #420

I was using neovim but nowdays I just fire up Sublime. neovim remains as a choice when I jump to other servers with SSH. The thing is that when I'm (for example) trying to RE some protocol and have bytes-only view, I move things around quite a lot. And Sublime has a powerfull tool for this: multiple cursors. I can create as many cursors as I need and edit multuple instances/bytes at once.

You can use marks in (n)vim for this!

m creates a mark. If is a capital letter, you can jump to it across files.

' jumps to the line of the mark.

` jumps to the line + column of the mark.

Although this doesn't let you _edit_ at the mark. There's multiple cursor plugins for that, I suppose... (I'll note that macros are useful in a lot of the same ways as multiple cursors)

Edit: You can also use :vimgrep or another command that populates the quickfix list, and use :cdo to execute a command on every entry in the quickfix list.

Re: LazyVim

#430
post #266

Earlier quoted context omitted.

Would you mind sharing it? Im just getting to grips with vim so any pointers towards some simple improvements would be much appreciated.

Sure: set ts=4 set sw=4 set softtabstop=4 set expandtab set hlsearch set incsearch set wildmode=longest,list OK, only 7 lines then :) Basically: tabs are 4 spaces, searching works better, and tab completion works like bash.

Oh no, I need at the very least timeoutlen, visualbell and line number. I type that manually when I SSH if I must. Don't want to wait for ESC, no beeps at all and I wanna know where I am on the document.

And lots more is needed for decent Vim IMO. smartcase, set hidden, etc.

Post reply on HN