[bash] use readline in vi mode
This commit is contained in:
parent
4d5b7cf2e3
commit
d9445fc08d
1 changed files with 26 additions and 32 deletions
|
@ -1,37 +1,31 @@
|
||||||
# Make Tab autocomplete regardless of filename case
|
|
||||||
set completion-ignore-case on
|
set completion-ignore-case on
|
||||||
|
set completion-query-items 40
|
||||||
# List all matches in case multiple possible completions are possible
|
set convert-meta off
|
||||||
set show-all-if-ambiguous on
|
set editing-mode vi
|
||||||
|
set input-meta on
|
||||||
# Immediately add a trailing slash when autocompleting symlinks to directories
|
set keyseq-timeout 100
|
||||||
|
set mark-directories on
|
||||||
set mark-symlinked-directories on
|
set mark-symlinked-directories on
|
||||||
|
set match-hidden-files on
|
||||||
# Use the text that has already been typed as the prefix for searching through
|
set output-meta on
|
||||||
# commands (i.e. more intelligent Up/Down behavior)
|
set page-completions on
|
||||||
"\e[B": history-search-forward
|
set show-all-if-ambiguous on
|
||||||
"\e[A": history-search-backward
|
set show-mode-in-prompt on
|
||||||
|
set vi-cmd-mode-string ": "
|
||||||
# Do not autocomplete hidden files unless the pattern explicitly begins with a dot
|
set vi-ins-mode-string ""
|
||||||
set match-hidden-files off
|
|
||||||
|
|
||||||
# Show all autocomplete results at once
|
|
||||||
set page-completions off
|
|
||||||
|
|
||||||
# If there are more than 200 possible completions for a word, ask to show them all
|
|
||||||
set completion-query-items 200
|
|
||||||
|
|
||||||
# Show extra file information when completing, like `ls -F` does
|
|
||||||
set visible-stats on
|
set visible-stats on
|
||||||
|
|
||||||
# Be more intelligent when autocompleting by also looking at the text after
|
# Exit normal/command mode by typing 'jk' or 'kj'
|
||||||
# the cursor. For example, when the current line is "cd ~/src/mozil", and
|
"jk":"\e"
|
||||||
# the cursor is on the "z", pressing Tab will not autocomplete it to "cd
|
"kj":"\e"
|
||||||
# ~/src/mozillail", but to "cd ~/src/mozilla". (This is supported by the
|
|
||||||
# Readline used by Bash 4.)
|
# Use typed text as the prefix for searching through commands
|
||||||
set skip-completed-text on
|
"\C-j": history-search-forward
|
||||||
|
"\C-k": history-search-backward
|
||||||
|
|
||||||
|
# Restore this behavior from emacs mode
|
||||||
|
"\C-l": clear-screen
|
||||||
|
|
||||||
|
# Avoid issues with C-s
|
||||||
|
"\C-f": forward-search-history
|
||||||
|
|
||||||
# Allow UTF-8 input and output, instead of showing stuff like $'\0123\0456'
|
|
||||||
set input-meta on
|
|
||||||
set output-meta on
|
|
||||||
set convert-meta off
|
|
Loading…
Add table
Reference in a new issue