Skip to content

u/pmodin

In this archive from May 2012 to Apr 2026

4
posts
53
comments
2
media
1.5k
score

better long command editing

Hello! Is there an easy way to edit a reeeeally long command prompt? Say, a curl-command with lots of --data that spans multiple lines? Currently I use set -o vi and keep bashing w or b. I'm using zsh if that matters. Lets say, something similar to the gj motion in vim, but that isn't available in v...

1 points2 comments
Open on Reddit

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.