# Enable `vi`-style line editing for all readline apps set editing-mode vi # Indicate the current mode via the cursor shape set show-mode-in-prompt on set vi-cmd-mode-string "\1\e[2 q\2" # steady block set vi-ins-mode-string "\1\e[5 q\2" # blinking bar set keyseq-timeout 100 # Completion # Never require a second tab set completion-query-items 200 # Ask before listing only above this count set page-completions off # No internal pager on long lists set show-all-if-ambiguous on # List matches instead of beeping set show-all-if-unmodified on # List even if no common prefix can be added # Case handling set completion-ignore-case on set completion-map-case on # Treat "-" and "_" as equivalent # Readability and correctness set colored-completion-prefix on # Highlight the common prefix set colored-stats on # Colorize matches by file type set mark-directories on # Append "/" to directories set mark-symlinked-directories on # Append "/" to symlinked directories set menu-complete-display-prefix on # Insert common prefix before cycling set skip-completed-text on # Avoid duplicating text after the cursor set visible-stats on # Append type indicators "/", "*", and "@" # Tab cycles through candidates while Shift-Tab goes back "\t": menu-complete "\e[Z": menu-complete-backward # Ctrl-L clears the screen in command mode only # => Bind in insert mode as well set keymap vi-insert "\C-l": clear-screen set keymap vi