Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
adolph
3y ago
0 comments
Save
Share
pb[paste|copy] are a life improver. Here is a one-liner to edit the pasteboard contents in vim.
pbpaste > tmp; vim tmp; cat tmp | pbcopy; rm tmp;
I also use pbpaste to append various notes to files, but since pbpaste doesnt have a newline at the end I wind up using:
echo "$(pbpaste)" >> notes.txt
0 comments
1 comments · 1 top-level
top
newest
oldest
dharmab
3y ago
You can do this specific task with just vim:
https://vi.stackexchange.com/a/21448
j
/
k
navigate · click thread line to collapse