Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
brod100266y@GMR516 I was inspired by a coworker, took a while to figure out the basics (select next, skip, delete line, exit lol) but after that and a couple tweaks (project draw, themes, scrolling) it wasn’t that much different than working with sublime and I it’s a lot closer to all my cli tools which I frequently use in sublimes shell anyway.
@hashedram I’m no master but it’s surprisingly straight forward. -
@stacked @hashedram
The whole "Vim is impossible" (to use and exit) meme is not really true.
My girlfriend taught herself to use Vim in 30 minutes.
Is she super productive? Nope. Can she remap keys or create scripts? Nope. But she can edit any file in Vim, and slowly becomes more comfortable with it.
> "No one knows how to exit!!!"
Mash the Escape button. Then type :x or :wq, maybe add a ! to it, if you really mean it.
> "Modes are hard!!!"
Press Escape to enter command mode. Press i to enter insert mode. There are more modes and ways to switch, but you can start with two.
> "OMG so many hotkey combos!!!"
From the command line (outside of vim), type vimtutor. Follow it completely.
> "I can't remember shit!!!"
Get cheatsheets. I recommend these sheets, they increase in difficulty for each sheet: http://viemu.com/a_vi_vim_graphical...
> "I want to be good!!!"
Solve one of these every day: https://www.vimgolf.com/ -
teilo4086yI've been a vim user for years, but mostly only when I was in the terminal. Recently I started developing in Elixir, and discovered that all the existing Elixir plugins were shit.
I tried VSCode, Sublime, Atom, and Jetbrains. Now, in all of the above, I always used vim mode for editing anyway (how's that for clueless?), so I finally got smart and took the time to setup neovim as an IDE, learned proper buffer management, and started using vimR. https://github.com/qvacua/vimr
I get the occasional glitch with completion, due to an upstream bug in Alchemist (the elixir completion plugin), but it's minor, and I'm no longer fighting the crappy vim-mode support in all the GUI editors.
Plus, now when I'm in terminal, I carry my IDE with me. -
xorith27466yThe biggest bitch I have about vim is that it's hard to break the habit of HOME/END/PGUP/PGDN/Arrow Keys.
Running locally in a proper shell, these probably map appropriately... but it seems that these keys are the first to be fucked over by bad terminal emulation or a shitty global config for users.
And if you try running your command line in vi mode, you can't use them at all (at least not that I've had success with) and you NEED to learn the vi(m) way of moving about.
Aside from that, I love vim when working on a server. It's my preferred editor in a console environment. When it comes to being actually fucking productive though, I'll take GoLand, WebStorm, PhpStorm, IDEA, etc. The power of an IDE, especially when you're brown fielding in someone else's shit-laden minefield is far too much to pass off to the ego wank of saying "Oh, I use vim".
But I mean, grats tho. Sublime is shit anyway. -
teilo4086y@xorith Best way to solve that is to get yourself a nice mechanical 60% keyboard. An added bonus is that they fit nicely in a backpack with your laptop.
As for replacing other IDEs, I agree only when it comes to running a debugger. I just can't get used to commandline debuggers, and while some of the vim plugins for this are nice, nothing comes close to, say, the debugger in PyCharm. Especially when it comes to remote debugging in a vagrant/docker dev environment. -
xorith27466y@teilo Nothing comes close to being able to do a quick shortcut and see all the references where some fucking shitty ass method is being used so you can easily cut away the cancer and try to save the patient.
My dude, I swear everyone here works in fucking fantasy land and no one ever has to deal with other people's bullshit. -
xorith27466y@teilo And for the record, I have a modded-out vim install on a special server for Golang development when I'm absolutely fucked and have no access to an IDE. It brings vim "close" to GoLand, but still oh so far away.
And it can only get that close because of the built-in and 3rd party tools available for Go. I'd love to see it do that for the C# code I have to fuck with on a daily basis. Even if it was in a decent enough condition to compile in mono (like it should, and would if I actually had the resources to do it).
Anyway. TL;DR of the last two comments: Right Tool For The Job. -
brod100266y@xorith I suppose as a JavaScript developer I’ve been able to get away without an IDE pretty easily, typescript is a bit less flexible but once you get linting, vcs helpers and omnisearch working there’s not many more features that add a whole lot of value imo.
-
xorith27466y@brod
Ah yeah. You can write JavaScript on the back of a napkin and something will probably run it for you.
My main languages are C#, Golang, and Java. In fact I've used all three today, and C# across two code bases that I'd rather print out and use to start a bonfire with. Sadly, that'd kill way too many trees.
With Golang, an IDE isn't absolutely needed - but it does help - especially with debugging as someone noted above. The vim plugins I use with Golang work well and even provide "IntelliSense" if you would. I hate memorizing every library author's opinionated way to name shit. (Including my own)
C# and Java though, without an IDE you're basically just shooting yourself in both feet before running a marathon. Especially if, as I said before, your job involves working with code that was written by people who preferred storing their heads in their asses. -
flocke2616yOnce you get used to vim you never wanna use something else again. Fortunately I had a friend that gave me his vim config when I stared using it so I had a pretty solid base (I've rewritten basically anything to my liking by now after I got used to it). I've tried a few other editors since then but I always keep coming back to vim ...
-
xorith27466y@brod
If you like vim you might like thefuck.
https://github.com/nvbn/thefuck
And I really want someone to port this to GUIs. If it hears me scream "FUCK" at my computer, it tries to figure out what I did wrong for me. -
@xorith
Yeah I think it's very language/project dependent.
Using Vim with a Laravel project (Using too many magical PHP hacks), with a frontend using things like Flow or TS with React or Vue (barely resembles javascript anymore), maybe Blade templates, etc.
It can be a pain to work in Vim if you're working on monolithic interpreted/templated projects.
For compiled single-language projects (and limited-responsibility interpreted microservices) you can usually get a "smart enough" environment with a few plugins.
I’m hopelessly brand loyal at times but after a day with Vim I’ve decided to jump ship. Ciao sublime ✌️
rant
vim > sublime