Counterpoint (or at least counter-consideration): Sometimes Vim is really, truly, absolutely the very best tool for the job and very much worth your time. I learned Vim because I had to edit code through an ssh tunnel, limited to text only, and nano just wasn't cutting it any more. This is pretty much the exact thing vim was born to do, so it was a pretty clear win to learn Vim, despite the horrifying learning curve.…
Don't use Vim for the wrong reasons (2020)
21–30 of 85 posts
Re: Don't use Vim for the wrong reasons (2020)
#22What is the consensus on productivity with Vim? I have thought about trying out the keyboard only approach, but haven't wanted to invest time in it yet. When I see people on YouTube using Vim it slightly feels like there's a whole lot of keypresses happening, but not a lot is actually gained compared to using a mouse or even frequently it seems it takes a while to do something that is much quicker with the mouse. I u…
Re: Don't use Vim for the wrong reasons (2020)
#23Re: Don't use Vim for the wrong reasons (2020)
#24> if you think it's everywhere One of the counterpoint is vim not being available on Windows. But It is. Not by default, but most critical stuff aren't there by default anyway and vim will be one of the easiest block to have ready. Then Windows comes with WSL, where I think most people who even care in passing about vim will spend their time, so we're back to the editor they'd use on Linux anyway. That was to me the…
The "counterpoint" is not that Vim is not _available_ on Windows. It is that Vim is not on Windows _out of the box_. You must install the native binary to have it or, like you suggest, install _another system_ on your machine… that actually comes with Vim.
"Can have X" is not the same as "has X".
FWIW, experimenting with Linux is also what got me hooked to Vim (and the shell and all the rest) in the first place, but rose-tinted glasses are not for me.
Re: Don't use Vim for the wrong reasons (2020)
#25One of my favorite things about using vim as my main IDE is, I can run it on a linux server. My work has me moving around the country. I program on a vim instance running on a remote server. I just need to carry a tiny laptop around. I usually get an okay ping( edit- Incase anyone is wondering, I actually started doing this since one of my laptops once got lost while traveling. Airline did find mybag later, but the t…
Re: Don't use Vim for the wrong reasons (2020)
#26> sed, awk, cut, a quick bash one-liner, a simpler editor, an infinitely more powerful IDE, an actual IRC or mail client, an actual presentation program, some online CSV-to-JSON converter, etc.
All of these will take time to learn or find. I know basic sed syntax but I'm never 100% sure that my edit does exactly what I want, so I end up running without -i and then with. I don't know awk at all. I use cut but always mess up the field numbers, and if there's multiple spaces involved then forget it. In all of these cases, it's faster for me to open the file in vim, make the change or grab the word I need, then exit. I'm not saying the tools are useless, but vim is flexible and covers a lot of use cases.
Half these examples are gui programs. Who is realistically trying to replace a presentation program with vim? These seem like strawmen to pad out the list.
Is vim the right tool for every job? No, definitely not. But I think it does well enough that it's okay to lean on it if you already know it.
Re: Don't use Vim for the wrong reasons (2020)
#27I'm sure there are better special tools but vim is the most general purpose tool you can learn and use. I never had regrets to invest time on it.
Re: Don't use Vim for the wrong reasons (2020)
#28sketchy terminal integration Vim’s :terminal is better than win10 terminal. And than Konsole too, for that matter. (Maybe I mistaken “integration” for something else.) to being single-threaded Is this a problem? All language servers run async in different processes. I don’t think vscode is multi-threaded either. Multi-processed sure. Threads are mostly dead. I’m not a vim missionary, don’t use it, don’t learn it, don…
Yes, you do. This is about how Vim integrates with the host terminal emulator and shell.
Re: Don't use Vim for the wrong reasons (2020)
#29I use vim all the time now for simple text editing when logged in to a machine but I'd never dream of using it for programming. I know how to cut and paste lines in vim and how to save and exit, nothing more needed.
Re: Don't use Vim for the wrong reasons (2020)
#30What is the consensus on productivity with Vim? I have thought about trying out the keyboard only approach, but haven't wanted to invest time in it yet. When I see people on YouTube using Vim it slightly feels like there's a whole lot of keypresses happening, but not a lot is actually gained compared to using a mouse or even frequently it seems it takes a while to do something that is much quicker with the mouse. I u…
The main drawback of all the keypresses you see is that Vim is an imperative editor: You have to tell Vim how to edit text by glueing together lots of small commands.* IDEs are declarative editors, you say "rename this variable" and they do it.
* Ask your local Vim nerd to rename the file they're editing. It will be entertaining!