It seems my FreeBSD console is misconfigured (i guess). I cannot use home or end buttons in command line (it prints ~), and in vi left arrow is switching me from edit to command mode, which makes editing a little difficult. How can I know what's wrong and fix it?
I'm not a root, by the way, I just hope it's something with my profile or bash configuration.
Shell version: GNU bash, version 4.0.35(0)-release (i386-portbld-freebsd8.0)
UPD: fixed home and end keys in console by creating ~/.inputrc and pasting this:
"\e[3~": delete-char
# this is actually equivalent to "\C-?": delete-char
# VT
"\e[1~": beginning-of-line
"\e[4~": end-of-line
# kvt
"\e[H":beginning-of-line
"\e[F":end-of-line
# rxvt and konsole (i.e. the KDE-app...)
"\e[7~":beginning-of-line
"\e[8~":end-of-line
"\e[1;5C": forward-word # Ctrl+right => forward word
"\e[1;5D": backward-word # Ctrl+left => backward word
(solution from here)
Still, left arrow in vi bothers me, and I cannot install vim on the machine (maybe it's some vi quirk, idk).
vidoes not support arrow keys. When it was written, keyboards had arrows on HJKL keys. – grawity May 31 '10 at 18:22