Hacker News new | ask | show | jobs
by ShepherdKing 2690 days ago
I really love my vim bindings, I try to use them everywhere possible. So far that is:

Web browser: Vimium plugin (Chrome)

Music player: Cmus

Terminal multiplexer: Tmux & Screen

Terminal pager: GNU Less

I'm still trying to figure out how best to use vim bindings in my z-shell (zsh) and ipython interactive sessions.

2 comments

You may like [ptipython](https://github.com/prompt-toolkit/ptpython/blob/master/READM... python-support) for vim bindings in an ipython(-ish) environment.
For zsh, just enable vi input mode? (bindkey -v in .zshrc) It starts in insert mode, hit esc to get to normal mode where your typical vi binds work. So instead of ^a to go to the beginning of the line it's <Esc>0
I think the issue that I had was that my regular bindings in insert mode (CTRL-a) were disabled while in vi input mode, which caused problems for other shell programs. Plus, with Tmux and GNU Screen already re-configured with vi bindings, managing key binding collisions became complicated with vi input mode enabled. The bigger issue that I tend to have is managing copy-paste buffers between Screen, Tmux, and Vim.