Hacker News new | past | comments | ask | show | jobs | submit login

I wrote a shell toy to help me learn vim motions.. the idea is you can grab parts of the output of previous shell commands by passing vim motions. So like when you want to say "git checkout <that branch mentioned 5 lines up in the previous command's output>" you can do it :)

  git checkout $(lw 5kyiW)
It's more of a toy than a power tool but I do use it somewhat regularly.

https://github.com/bgribble/lw




For bash or any other application using the readline library you can configure it for vi mode by adding 'set editing-mode vi' to your ~/.inputrc. Note for bash you can instead add 'set -o vi' to ~/.bashrc to avoid setting the mode for all readline applications


Interesting, you may be interested in vi mode in bash.

http://www.catonmat.net/blog/bash-vi-editing-mode-cheat-shee...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: