best inputrc ever
This commit is contained in:
+23
-13
@@ -19,21 +19,31 @@ set input-meta on
|
||||
set output-meta on
|
||||
set convert-meta off
|
||||
|
||||
## ARROW up, down for history search
|
||||
"\e[A":history-search-backward
|
||||
"\e[B":history-search-forward
|
||||
# { up, down } for history search
|
||||
"\e[A": history-search-backward
|
||||
"\e[B": history-search-forward
|
||||
|
||||
# CTRL + Right, Left for word suppressing
|
||||
"\e[1;5C": forward-word
|
||||
"\e[1;5D": backward-word
|
||||
# CTRL + { left, right } for moving around Big Words
|
||||
"\e[1;5D": vi-backward-bigword
|
||||
"\e[1;5C": vi-forward-bigword
|
||||
|
||||
# ALT + BACKSPACE for left line suppressing
|
||||
"\e[3;3~": kill-line
|
||||
# ALT + DELETE for right line suppressing
|
||||
# ALT + { left, right } for moving around words (slower)
|
||||
"\e[3;5D": vi-backward-word
|
||||
"\e[3;5C": vi-end-word
|
||||
|
||||
# SHIFT + { backspace, delete } for suppressing until start/end (ghostty)
|
||||
"\e[3;2~": kill-line
|
||||
"\e[127;2u": backward-kill-line
|
||||
|
||||
# ALT + backspace for suppressing until start (alternative)
|
||||
"\e\C-?": backward-kill-line
|
||||
|
||||
# CTRL + BACKSPACE for left word suppressing
|
||||
"\C-H": backward-kill-word
|
||||
# ALT + delete for suppressing whole line
|
||||
"\e[3;3~": kill-whole-line
|
||||
|
||||
# SHIFT + (CTRL) + Arrows: does nothing
|
||||
"\e[1;2D": ''
|
||||
"\e[1;2C": ''
|
||||
"\e[1;6D": ''
|
||||
"\e[1;6C": ''
|
||||
|
||||
# SHIFT + DELETE for whole line suppressing
|
||||
"\e[3;2~": kill-whole-line
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
" ROOKIE vim user
|
||||
" ---------------
|
||||
|
||||
" Open File and Go to Line under Cursor
|
||||
nmap gf gF
|
||||
|
||||
" Move Along Words
|
||||
inoremap <C-Left> B
|
||||
inoremap <C-Right> W
|
||||
|
||||
Reference in New Issue
Block a user