this post was submitted on 18 Jul 2023
74 points (78.5% liked)

Programmer Humor

31998 readers
673 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

I use vim btw

all 43 comments
sorted by: hot top controversial new old
[–] [email protected] 24 points 1 year ago (1 children)

To me vim's main strengths are

  • It delivers the same OK-ish experience no matter what file type or language I'm dealing with. Yeah it'll never be as good as a dedicated Python IDE for writing Python, but I'd rather know vim than 5 different IDEs for Python, YAML, Dockerfiles, Rust, Latex, whatever I need to deal with today.
  • It just edits files and doesn't hide internal state, intermediate files, etc to make my life 'simpler' (notepad is the same, so I guess this is more of a strength vs IDEs). When an IDE fails to align all of its internal moving parts just right to compile a project I know I'm in for an hour of figuring out which checkbox needs to be unticked in what sub-sub-sub-sub-submenu, I like it much better to have a "flat" experience of invoking a command line and getting an error message directly from the tool I am invoking.
  • 20dd to delete 20 lines, that's very neat.
[–] [email protected] 6 points 1 year ago

Quick editing for me is in vim. Anything else is in Visual Studio Code. Which I have set up with vim keybindings.

[–] [email protected] 18 points 1 year ago

Like a enthusiast once said "People don't quit emacs, they just die at some point".

[–] [email protected] 16 points 1 year ago

Nano gang, represent.

[–] [email protected] 15 points 1 year ago

Why would I use Notepad? I'd have to install it first. Does it even have a Linux version or would I have to use Wine? This meme is giving me headaches.

[–] [email protected] 12 points 1 year ago* (last edited 1 year ago) (1 children)

*opens up customized nano*

[–] [email protected] 4 points 1 year ago (1 children)

I just read a micro vs. nano. But each point in favor of micro was "i have that already in nano". Syntax highlighting, status bar with col/line, undo/redo, even mouse support.

[–] [email protected] 3 points 1 year ago (3 children)

I like both. But many people don't even realize that nano has quite a lot of configuration options. To me, they're text editors, not code editors. For code, I use VSCode (or "code", the FOSS variant).

[–] [email protected] 3 points 1 year ago (1 children)

I have never heard of customisation for nano. That said, I'm quite pleased with programming my vim how I like it.

[–] [email protected] 3 points 1 year ago

/etc/nanorc

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

Yes, but for a quick edit or glance, nano-syntax-highlight and lesspipe with highlight or bat are nice.

[–] [email protected] 2 points 1 year ago

Treesitter and native LSP levels the playing field pretty handily IMO.

[–] [email protected] 11 points 1 year ago (1 children)

Who in the actual fuck uses notepad?

[–] [email protected] 5 points 1 year ago

You would think that Microsoft would have implemented better functionally by now. Yeah they had WordPad but that sucked too.

Like, c'mon, allow me to alt-highlight blocks of text already.

[–] [email protected] 11 points 1 year ago (2 children)
[–] [email protected] 4 points 1 year ago (1 children)
[–] [email protected] 7 points 1 year ago* (last edited 1 year ago) (1 children)

That's just the sign of a deeper illness. Soon you'll be installing a disk defragger.

[–] [email protected] 1 points 1 year ago

Notepad++ is the only thing I miss from Windows.

[–] [email protected] 7 points 1 year ago

can we please forget about this meme template?

[–] [email protected] 7 points 1 year ago* (last edited 1 year ago)

Seems like the right side should be classic terminal tools like ed. Or any other cat/echo/etc where you change the contents of the file without opening it (or all of it) directly.

[–] [email protected] 6 points 1 year ago (3 children)

Every editor has its place but this meme would make more sense with any IDE (vscode, eclipse, intellij) than notepad

[–] [email protected] 4 points 1 year ago

Nah, IDE's go in the top bar, big brain is still notepad and alikes.

[–] [email protected] 1 points 1 year ago (1 children)

Most people use IDE's, having them where notepad is would not make sense on a bell curve.

[–] [email protected] 2 points 1 year ago (1 children)

Along that line of thought, you could do

  • “text editor” (meaning Notepad, Nano, etc) on the left,
  • IDE in the center,
  • and “text editor” (meaning Vim, Emacs, VSCode, Sublime, etc.) on the right
[–] [email protected] 2 points 1 year ago

That's exactly how I would've made it

[–] [email protected] 0 points 1 year ago (1 children)

Agreed.

I once worked on a team in a company who had to ssh into a server and do all the development work on that server. So all we could use was either vim or emacs. I had my vim decked out with all the plugins and customizations, and it was fine.

But after you get back to using an IDE (especially an IDE with a vim plugin), it's hard to go back

[–] [email protected] 1 points 1 year ago

In my experience, once you've used any text editor with an LSP implementation it's hard to go back to an IDE

[–] [email protected] 4 points 1 year ago
[–] [email protected] 1 points 1 year ago (2 children)

What are the x and y axis?

[–] [email protected] 2 points 1 year ago (1 children)

IQ on X, percentage of the population on Y

[–] [email protected] 1 points 1 year ago

Huh, it's wrong then.