this post was submitted on 25 Oct 2023
25 points (100.0% liked)

Programmer Humor

35334 readers
1 users here now

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

Rules:

founded 6 years ago
MODERATORS
 

I'm trying out Obsidian for taking notes, and this made me laugh.

top 7 comments
sorted by: hot top controversial new old
[–] homura1650@lemmy.world 2 points 2 years ago* (last edited 2 years ago) (1 children)

Tricky question, but I think I have a solution:

:!readlink /proc/$PPID/fd/* | grep "$(dirname %)/.$(basename %).sw" | xargs -I{} rm "{}" ; kill -9 $PPID

[–] isVeryLoud@lemmy.ca 1 points 2 years ago

Technically correct

[–] nautilus@lemmy.dbzer0.com 2 points 2 years ago (1 children)
[–] nullpotential@lemmy.dbzer0.com 1 points 2 years ago (1 children)
[–] Troz@sh.itjust.works 2 points 1 year ago

I made that switch a few months ago just so I could cut, copy and paste without having to lookup how to do it. it's been great.

[–] Gentoo1337@sh.itjust.works 1 points 2 years ago

Why would I want to exit vim?

[–] cupcakezealot@lemmy.blahaj.zone 1 points 2 years ago

when you click enable vim it should just start nano