542
submitted 2 days ago* (last edited 2 days ago) by moonleay@feddit.org to c/programmer_humor@programming.dev
top 50 comments
sorted by: hot top controversial new old
[-] emuspawn@orbiting.observer 21 points 1 day ago

unrepentant nano gang rise up

[-] Malix@sopuli.xyz 57 points 2 days ago

well, I am using vim, but I don't know how to use vim.

Am I vimming?

[-] 1984@lemmy.today 6 points 2 days ago

If you dont know how to exit vim, then yes you are...

[-] Malix@sopuli.xyz 8 points 2 days ago

:what^C^C^C^Z^Z^C^ESCFFUUUUUUUUUU...

[-] 1984@lemmy.today 9 points 2 days ago

I remember that experience first time and how I had to kill the process from another shell :)

This was before the internet so couldn't exactly google it either.

Fun times. But I figured it out by reading the man page.

load more comments (1 replies)
[-] Anticorp@lemmy.world 3 points 1 day ago

Escape, :wq!

Escape enters command mode

: prompts the command

W = write

Q = quit

! forces it

[-] pinkystew@reddthat.com 11 points 1 day ago

The first time I used VI I typed a few characters, then hit backspace to delete some characters. Backspace doesn't delete characters. I closed VI and never opened it again.

[-] hakunawazo@lemmy.world 17 points 1 day ago

Yeah yeah, brag about being able to close VI the first time of use...

[-] fin@sh.itjust.works 9 points 1 day ago
[-] pinkystew@reddthat.com 3 points 1 day ago

Carpenter's axe to the utility line outside my house

[-] nickwitha_k@lemmy.sdf.org 1 points 8 hours ago

As a long-time vim enjoyer, I like your gusto. Imagine if you could apply regexes to that carpenter's axe.

(Also, what sort? Do you have one of those awesome Gransfors Bruks ones?)

[-] Anticorp@lemmy.world 5 points 1 day ago

You need to type i first to enter insert mode.

[-] QuazarOmega@lemy.lol 4 points 1 day ago* (last edited 1 day ago)

Now I can't exit HELPPP^C^C

[-] zarkanian@sh.itjust.works 1 points 1 day ago

And you weren't curious about how it worked? Not at all?

[-] pinkystew@reddthat.com 1 points 1 day ago

A million better alternatives exist. I was curious about them.

[-] Kojichan@lemmy.world 8 points 1 day ago

hides in Kate and a Codium-based IDE

[-] sorter_plainview@lemmy.today 12 points 1 day ago

Tried neovim a couple of times. Stopped after 10 or 15 mins. Anyone has useful tips to get used to vim/neovim?

[-] grrgyle@slrpnk.net 22 points 1 day ago

Just get used to

  • using movement (hjkl),
  • going between insert and normal modes (i and esc),
  • undoing (u from normal mode),
  • and saving (:w and :wq).

Don't try to do it all at first, just get comfortable with the essentials. You can even just stay in insert mode (the only mode in most editors) at first.

Keep a vim basics cheat sheet handy for a couple weeks as you're building in muscle memory, then slowly work in more advanced techniques and combinations.

It doesn't take long before you start having a lot of fun just manipulating text.

PS here's a decently basic cheat sheet I found: image describing basic vim keyboard bindings and commands

[-] Passerby6497@lemmy.world 1 points 1 day ago

I always forget about :wq, mainly because escing out of interactive mode and hitting ZZ is so much quicker.

[-] akkajdh999@programming.dev 12 points 1 day ago

Pro Tip: to learn to do something, practice doing it

[-] zarkanian@sh.itjust.works 4 points 1 day ago

There are plenty of cheat sheets online. The main thing is understanding that there are different modes, knowing what they do, and how to switch between them and issue commands.

[-] hakunawazo@lemmy.world 4 points 1 day ago

I became a fan after I got used to nice color schemes, buffers/tabs, horizontal/vertical splitting, file browsing with NERDTree and highlighting changes with GITGutter.

You ask for tips? Add VIM commands you use regularly (like paste mode toggle for example) to a keyboard shortcut (like leader key + p) in your .vimrc settings file. It increases working speed.
Also add some plugins, they are fun and add useful functions from other editors like Sublime (ctrl-p, vim-multiple-cursors).

[-] TechieDamien@lemmy.ml 6 points 1 day ago

Go through the tutorial. It is quite good and teaches things incrementally with real world examples. Just run vimtutor to start.

load more comments (2 replies)
[-] xlash123@sh.itjust.works 13 points 1 day ago

I'm always vimming!

Not because I want to though. It's because I don't know how to stop...

[-] bruhduh@lemmy.world 6 points 1 day ago
[-] 0ops@lemm.ee 2 points 1 day ago

We're you referencing this by chance?

[-] seaQueue@lemmy.world 16 points 2 days ago

Emacs users be like

[-] LordWiggle@lemmy.world 3 points 1 day ago

Sorry for living under a rock, but what is vim?

[-] pmk@lemmy.sdf.org 10 points 1 day ago

It's a text editor. It all began with the ed editor, which is very simple and does one thing, it edits files. Then someone extended it into the ex editor. Then someone added a new feature: being able to visually see the file you're editing, which became vi, the visual editor. Then someone improved that, into vim. What began as an editor where you needed to be fluent in regular expressions but otherwise was simple, is now a very complex editor, moving the functionality of the old UNIX tools into the editor itself.

[-] LordWiggle@lemmy.world 3 points 1 day ago
[-] nickwitha_k@lemmy.sdf.org 2 points 8 hours ago

It's also available on nearly every unix-like machine since the 70s. So, super useful to know how to use. I personally also like (neo)vim as an IDE and its optional regex functionality because that allows once to efficiently edit massive files with minimal effort.

[-] bluewing@lemm.ee 2 points 1 day ago
[-] T156@lemmy.world 2 points 1 day ago

At least it's better than ed.

?

[-] pmk@lemmy.sdf.org 1 points 8 hours ago

The same arguments about learning vi/vim/neovim holds for ed. It's not intuitive, you need to get used to it, you need to learn, etc. People choose not to learn vim for the same reason vim users don't want to learn ed.

[-] jbrains@sh.itjust.works 6 points 2 days ago
[-] Jumuta@sh.itjust.works 6 points 1 day ago* (last edited 1 day ago)

fellow noun->verb user :)

helix superiority however.

[-] jbrains@sh.itjust.works 4 points 1 day ago

Pitch me. I could switch, but it would help a great deal to understand more about why. I'm open to change, but not eager to change.

load more comments (2 replies)
load more comments (2 replies)
[-] geneva_convenience@lemmy.ml 2 points 1 day ago

Progress lost

[-] Anticorp@lemmy.world 1 points 1 day ago

Sorry bub, but you just wasted your time

load more comments
view more: next ›
this post was submitted on 05 Nov 2024
542 points (97.7% liked)

Programmer Humor

19480 readers
250 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS