From 62364ed8f03934205ef4256a04e475540284451a Mon Sep 17 00:00:00 2001 From: pvincent Date: Sun, 9 Aug 2026 11:03:48 +0400 Subject: [PATCH] best inputrc ever --- etc/inputrc | 36 +++++++++++++++++++++++------------- etc/vim/vimrc.rookie | 3 --- 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/etc/inputrc b/etc/inputrc index b7f698e..910cf62 100644 --- a/etc/inputrc +++ b/etc/inputrc @@ -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 diff --git a/etc/vim/vimrc.rookie b/etc/vim/vimrc.rookie index 47f7398..9f40c10 100644 --- a/etc/vim/vimrc.rookie +++ b/etc/vim/vimrc.rookie @@ -1,9 +1,6 @@ " ROOKIE vim user " --------------- -" Open File and Go to Line under Cursor -nmap gf gF - " Move Along Words inoremap B inoremap W