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

Programmer Humor

35091 readers
31 users here now

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

Rules:

founded 5 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
[–] [email protected] 2 points 2 years ago* (last edited 1 year 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

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

Technically correct

[–] [email protected] 2 points 2 years ago (1 children)
[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 2 points 7 months 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.

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

Why would I want to exit vim?

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

when you click enable vim it should just start nano