4 ms·
Another thing you can do to improve speed is learn the keybindings for readline. They are the same keybindings as emacs, and lots of other things use readline t
by torrent-of-ions 12y ago
Another thing you can do to improve speed is learn the keybindings for readline. They are the same keybindings as emacs, and lots of other things use readline too like python shell, sqlite, etc. A very useful set of keys to have in your muscle memory. See the readline manual: http://tiswww.case.edu/php/chet/readline/rluserman.html#SEC3 http://tiswww.case.edu/php/chet/readline/rluserman.html#SEC3
- shawndumas 12y agoif your a vi/vim user in you're .inputrc set: set editing-mode vi set keymap vi-command see more settings @ https://github.com/shawndumas/dotfiles/blob/master/readline/.inputrc https://github.com/shawndumas/dotfiles/blob/master/readline/...
- cerberusss 12y agoThis won't work for some standard stuff that OS X ships with, for instance Python (when started as a command-line interpreter). That's because .inputrc is read by the GNU readline utilities, and Apple links with the BSD equivalent. To make this work for Python: Add a file called .editrc with the following content: bind -v Add a file called .pythonrc with the following lines: import rlcompleter import readline Add a line to your .bashrc which makes Python run .pythonrc when it starts interactively: export PYTHONSTARTUP="$HOME/.pythonrc" Now Python will understand your vi keystrokes :-)