Questions tagged [vi-mode]
Theses questions are about GNU Readline's vi mode providing vi-like commands inside your terminal. Use this tag for questions about configuring or operating vi mode (e.g., Bash integration, setting keybindings).
58 questions
0 votes
2 answers
88 views
remap '-' key in BASH vi normal mode to "cd .."
I just discovered vi mode in bash that I enable with set -o vi in my .bashrc. Now I was quite excited to remap the "normal mode" equivalents to some handy functionality. First and foremost I ...
1 vote
1 answer
486 views
Colorful cursor to indicate vi mode in zsh, but fail to reset color
I am trying to have cursor color in zsh to indicate normal/insert mode, but once enter normal mode, the color of cursor don't reset to default color in insert mode. The source are: # color cursor zle-...
1 vote
1 answer
36 views
Is it possible to make readline ignore compspec when expanding matches in VI mode?
I use VI mode when using bash and I sometimes find that some of the standard compspec definitions don't do what I want. For example, java doesn't appear to know that you have been able to do java ...
2 votes
0 answers
532 views
How to paste selection from vi-mode to clipboard
I want to access the content of what I copied in the buffer with the vi-mode of the clipboard via the command ctrl + v or ctrl + shift + v in the terminal. I copied in my .zshrc the following: (from ...
3 votes
1 answer
540 views
Fish shell vi-mode is missing "repeat" command (dot/period/. key in Zsh)
I recently moved from Zsh to Fish, and I'm having a problem with vi-mode in Fish. There doesn't seem to be a "repeat" keybinding, like in Zsh's vi-mode (bound to the "dot" .). I ...
0 votes
1 answer
184 views
assign letters to jump forward and backward in bash
My default shell is tcsh. In my .cshrc file. I have bindkey -v, so that at the command line, the letters b and w jump backwards and forwards a word, respectively. I'd like to set up bash so that ...
1 vote
0 answers
564 views
Seeking alternative to KeyNav(drive mouse with keyboard, for X)
as described in the title, I am seeking user-friendly alternatives to KeyNav. I am a fan of CLI&TUI applications and stay on the terminal emulator most of the time, where I can use the keyboard to ...
7 votes
2 answers
325 views
Insert the last argument in bash in vi mode without inserting a leading space
Using bash in the default (emacs) mode I get the following behavior when I hit Esc, .. $ echo hello hello $ hello # I hit `<ESC>.` to insert this Note there is no space before the word hello ...