3 ms·
Are You a vim Fan Using Emacs Editing Commands in Your Bash Shell? Improve Your Life With "set -o vi"
- staunch 20y agoI've been using bash in vi mode for a few years now and can't live without it. Not really startup news exactly, but so many people who love vim don't know about this. Spread the word so I can eventually make it default on all the servers I run :-)
- far33d 20y agoOr in csh/tcsh, $ bindkey -v
- amichail 20y agoHow do you search through the history?
- jey 20y agoOh man, awesome tip!
- jaggederest 20y agoI was quite surprised when I started learning emacs, and accidentally used commands on the command line, and they worked.
- ralph 20y agoPersonally, I put these lines in my ~/.inputrc. It allows the vi key-bindings to still work but a few of the non-vi ones can leak through. set keymap vi-insert C-p: previous-history C-n: next-history C-b: backward-char C-f: forward-char C-a: beginning-of-line C-e: end-of-line C-l: clear-screen