this post was submitted on 06 Nov 2025
175 points (94.4% liked)
Programming
23403 readers
157 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I've always liked vim but one thing that I really loved about it was when I started using vim mode in zsh.
Being able to just navigate through commands in my terminal and easily highlight and edit and all that ... it's so good.
I'm an emacs user myself, but if you're not aware, readline
which handles a considerable portion of the "prompt for text" stuff in many terminal programs, like input for bash and such
can be put into vi mode.
https://tiswww.case.edu/php/chet/readline/rluserman.html#Readline-vi-Mode
Or, in ~/.inputrc:
To set the default.
HOLY CRAP
Let's say I run a command that spews output. Are you saying that with Zsh I can use only the keyboard to navigate the spew, copy a bit of it, and paste it in a new command?
If so I should try it out!
Zsh probably can't do that, because zsh is involved with typing commands, not handling their output. You should look into the docs and settings for your terminal emulator — some of them do support selecting output with the keyboard. Alternatively, something like tmux might be able to handle that too.
Some say you don't need it, but I personally use this plugin: https://github.com/jeffreytse/zsh-vi-mode
but I also use this: https://github.com/zdharma-continuum/fast-syntax-highlighting for syntax highlighting and it makes it more readable too.