News for hackers. Stuff that matters.
Re:The Missing Semester of Your CS Education by mydriasis on Saturday February 25, 2023 @01:11AM (#34934329)
I love vim, it's great to know how to navigate it, but I have met very few people who use it professionally. I'd love to hear others' experiences, there.
Re:The Missing Semester of Your CS Education by ar_lan on Saturday February 25, 2023 @01:33AM (#34934431)
I use (Neo)vim as my daily driver, professionally (for the past 4 years, coming from Goland). I've found every other editor to be too heavy/slow (VScode/Jetbrains), or too noisy (regarding features).

Neovim allows me to specify the precise minimum I desire to have a fully functional IDE-like experience (basically treesitter + LSP + DAP + minimal extra plugins).

It's super fast, I'm already in my shell, and my memory usage gets to stay super low :)

Re:The Missing Semester of Your CS Education by Salgat on Saturday February 25, 2023 @02:22AM (#34934651)
Once I learned how to use vs code productively it really changed my mind. The other day I needed to do a quick base64 encode and vs code had that. Same goes for formatting some json or doing a diff. It's all available in a single tool with no learning curve. Hell it even has git and git blame in there.
Re:The Missing Semester of Your CS Education by laurels-marts on Saturday February 25, 2023 @05:39AM (#34935576)
I think VS Code is just extremely convenient and can address most peoples needs out of the box. It’s therefore also very beginner friendly. You don’t need to constantly fight the tool or spend hours researching how to configure some trivial feature. That being said VS Code is quite heavy and has an enormous amount of GUI elements. I mean they even have buttons for things like git fetch and pull for heavens sake. They could release a VSC Light that strips most of the GUI out.
Re:The Missing Semester of Your CS Education by ohy on Saturday February 25, 2023 @08:44AM (#34936599)
True, but you can customise it a lot. So the number of UI elements is not a problem.
Re:The Missing Semester of Your CS Education by ClumsyPilot on Saturday February 25, 2023 @10:39AM (#34937439)
Vs Code is the gateway drug of real IDE's. Last time I checked, it still cant do things like navigate to definition, or rename a calss along with all mentions of it in comments. Or count TODO: comments
Re:The Missing Semester of Your CS Education by dizwit on Saturday February 25, 2023 @01:02PM (#34938811)
navigate to definition -> f12

rename all instances of class/method/variable -> f2

count TODOs: too many vs code plugins that will do that for you

Not sure when the last time you checked, but vs code is a practical full fledged IDE with the right plugins.

Re:The Missing Semester of Your CS Education by ar_lan on Saturday February 25, 2023 @05:17PM (#34940994)
I don't think this is accurate - at least not anymore. VS Code supports LSP configuration which means all those features should be available.

That said - I haven't used it in years. Way too heavy and Vim does all of those + modal editing.

Re:The Missing Semester of Your CS Education by ar_lan on Saturday February 25, 2023 @05:19PM (#34941015)
Yeah - to each their own. I have all these tools in my terminal too. I'm just a lot faster in the terminal, and I don't really think it's possible to be faster in a GUI (even if there are shortcuts - there will surely be shortcomings before you eventually just re-invent a terminal via VSCode).

Plus - modal editing :)

Re:The Missing Semester of Your CS Education by danmur on Saturday February 25, 2023 @01:14AM (#34934338)
Lots of people at my work use it, but I don't know if I'd consider it essential. If you can use any editor/IDE very fluently that's good; probably doesn't hurt to learn with vim if you don't already have that.
Re:The Missing Semester of Your CS Education by justizin on Saturday February 25, 2023 @01:19AM (#34934364)
if you ever find yourself needing to modify files at the shell on any sort of remotely modern unix/linux system, you're probably going to have vi or vim available.

it's worth knowing an editor that doesn't require 6GB of RAM and a graphical environment, but it's probably not going to be most folks' primary editor. ;d

Re:The Missing Semester of Your CS Education by IIsi50MHz on Sunday February 26, 2023 @02:19PM (#34948453)
<6 GB RAM?

Sooo many choices. I started[1] programming on a 5 MB machine with ~4 MB free.[2]

But I'm not allowed a GUI? Ok… then, I'll choose an editor with a keyboard-driven menubar across the top (keyboard shortcuts appearing in the menus), a status line on bottom, and as many keycombos that match my preferred GUI as possible.

Failing that, I can muddle along with Nano.

Until some once-in-20-years task actually requires using an arcane 'editor' that assumes I live in PDP-11. (^:

[1] Wellll… I sometimes forget typing BASIC from magazines into an Apple II and making small changes.

[2] And it was luxurious…until I tried to fit 8 MB of a CD-ROM app into compressed RAM.

Re:The Missing Semester of Your CS Education by jrumbut on Saturday February 25, 2023 @01:33AM (#34934430)
I've been using it professionally since 2011.
Re:The Missing Semester of Your CS Education by dfee on Saturday February 25, 2023 @01:16AM (#34934351)
Using vim itself? I mean, yeah picking up ninja edits here and there.

Using vim motions? Everywhere. All the time.

Re:The Missing Semester of Your CS Education by nicklaf on Saturday February 25, 2023 @02:16AM (#34934617)
Yep! Evil for Emacs, IntelliJ, ranger, ksh93 shell history editing (this one includes search!), DuckDuckGo, Fastmail, Gmail....
Re:The Missing Semester of Your CS Education by laichzeit0 on Saturday February 25, 2023 @01:45AM (#34934491)
I've given up on Vim a long time ago. However, every IDE or editor or notebook tool I use that has Vim keystrokes I enable that and use that. You have to let the Vim purist in you die, it's not a fight that can be won. Settle for like 80% of what you used to be able to do in Vim and call it a day.
Re:The Missing Semester of Your CS Education by xyzzy_plugh on Saturday February 25, 2023 @08:55AM (#34936686)
I don't understand. Why do you need to do this? What am I settling for? I use vim daily and want for nothing.

Vim becomes a state of mind, a model for editing that is really empowering. I can translate any thought to code by doing a little dance on my keyboard. My mind is freed by this expression.

Re:The Missing Semester of Your CS Education by shaunsingh0207 on Saturday February 25, 2023 @01:54AM (#34934527)
Every time I'm working on a personal project I boot up neovim and have some fun. I have an extensive neovim (and emacs) configuration.

If I need to do anything in a professional environment, I boot up intellij/vscode/whatever they use and just install a vim emulation plugin. Vim is fun and all, but when time is money the last thing I want to worry about is configuring my editor.

Re:The Missing Semester of Your CS Education by jojo14 on Saturday February 25, 2023 @02:02AM (#34934561)
I use Vim infrequently. I know it and if it was the only option I'd be efficient with it. I've even started with Vi as the only option. However I prefer Emacs because I feel way more efficient and comfortable with it. As a bonus main key bindings are consistent with Bash and others GNU tools. The course should introduce Emacs as well so that students can choose on their own. Whatever your preferred editor is IMHO it is up to an IDE to integrate with it.
Re:The Missing Semester of Your CS Education by tooltower on Saturday February 25, 2023 @02:08AM (#34934586)
I switched to vim in college, never went back. That was 20 years ago.
Re:The Missing Semester of Your CS Education by theonething on Saturday February 25, 2023 @02:14AM (#34934610)
I use it professionally and personally for all text editing, even just taking plain notes. I feel handicapped without it.
Re:The Missing Semester of Your CS Education by vyskocilm on Saturday February 25, 2023 @02:15AM (#34934613)
I use neovim with Ale plugin for LSP and linters. Somehow it maps into my brain better than anything else. Its fast, on cli, feature rich, usable without a mouse...

The only thing where vim/neovim really sucks against other tools is the project specific configuration.

Re:The Missing Semester of Your CS Education by zem on Saturday February 25, 2023 @02:21AM (#34934644)
been using it my entire career. works well, never had much reason to switch, especially these days when I do most of my work sshed into another machine (we aren't allowed to have work code on our laptops)
Re:The Missing Semester of Your CS Education by johncoltrane on Saturday February 25, 2023 @02:27AM (#34934676)
I switched from TextMate to Vim as my main driver in 2010. Never looked back.
Re:The Missing Semester of Your CS Education by vincent-manis on Saturday February 25, 2023 @02:48AM (#34934776)
I'm not fond of Vim, have been an Emacs user for going on 40 years, starting with Gosmacs. That said, I'd rather that students learn one editor really well, rather than the smattering of editor/IDE usage most of them seem to acquire. So, fine, teach them enough Vim that they can use it well, afterwards, they can use whatever editor they choose.
Re:The Missing Semester of Your CS Education by vishnugupta on Saturday February 25, 2023 @02:52AM (#34934801)
I can't edit text files without vim. I use modern IDEs (IntelliJ) and the first thing I do when I install them is to install Vim plugin.
Re:The Missing Semester of Your CS Education by crispinb on Saturday February 25, 2023 @02:52AM (#34934802)
I use it (well neovim) exclusively now because I like it. I have in the past used Emacs, IntelliJ, and VSCode. All work, the choice between them doesn't matter a jot, and that choice has never had the slightest influence on my competence or so-called 'productivity'.

More useless words have been spent over editor choice than .. "how good is Linux?" or "how terrible is Electron!" or any one of the handful of sometimes entertaining and always vacuous areas of argument software people frequent over their peccadilloes.

Re:The Missing Semester of Your CS Education by raincole on Saturday February 25, 2023 @04:13AM (#34935168)
Depending on what kind of programming you're doing. I think it's fairly command in sysadmin stuff. But I can't imainge doing, say, Android development in vim. (Of course it's physicall possible, but...)
Re:The Missing Semester of Your CS Education by lordnacho on Saturday February 25, 2023 @05:37AM (#34935560)
I don't use vim much since nano seems to be on every installation I've seen recently.

But I don't think anyone can avoid learning how to quit vim. We've all been there, you think you know the keys, you don't, now you are trapped.

Re:The Missing Semester of Your CS Education by flippinburgers on Saturday February 25, 2023 @08:02AM (#34936342)
I have used neovim for a few years now. With lsp support and other additions, using a vim variant hasn't been better!
Re:The Missing Semester of Your CS Education by lizknope on Saturday February 25, 2023 @11:28AM (#34937865)
70% of my coworkers use vi but most of us are in our 40's. About 20% use emacs and the other 10% use some other usually GUI text editor.
Re:The Missing Semester of Your CS Education by anthomtb on Saturday February 25, 2023 @01:04PM (#34938828)
Of the 10 developers I work with the most, 9 are vim users and one is VSCode. The VSCode guy won’t shut up about it but then he is also the proselytizing type.

Honest, I’m not that attached to vim and mainly keep using it because it’s what my colleagues use. If everyone suddenly switched to VSCode I would follow the herd. The only thing about vim that I love, and would not give up, is the keybindings and I am sure I could find a decent plug-in for that.

Re:The Missing Semester of Your CS Education by tmerr on Sunday February 26, 2023 @04:00PM (#34949395)
I'm 30 and have been using vim since college. Usually I'm not actually using the vim editor, but some IDE that has vim keybindings. Good enough for me since I don't customize it much anyway. And then I get the best of both worlds: IDE features for navigating around files (jump to definition, display references), and vim for navigating within a file. Professionally I never paid attention to how many people are using it. Off hand I know a couple people that use emacs, and zero that know vim, but this is probably because emacs users talk about emacs :)