# builtin bindings. can be overridden
#bind left left
#bind right right
#bind up up
#bind down down
#bind home bol
#bind end eol
#bind pgup pgup
#bind pgdown pgdown
#bind delete delete
#bind ^\[ unselect
#bind ^Z suspend
#bind ^\? erase
#bind ^H erase
#bind ^C command

bind C-left word-bwd
bind C-right word-fwd

bind ^A bol
bind ^B left
bind ^U erase-bol
bind ^K delete-eol
bind ^W erase-word
bind ^E undo
bind ^R redo
bind ^Y copy
bind ^D cut
bind ^P paste
bind ^V "select -l"
bind ^G center-view
bind ^J join
bind ^O new-line
bind ^Q delete-word
bind ^S clear
bind ^L "command 'line '"
bind ^T "tag -r"
bind ^] tag
bind ^F format-paragraph
bind insert insert-special

bind M-/ "search"
bind M-\? "search -r"
bind M-p "search -p"
bind M-n "search -n"
bind M-f "search -w"
bind M-b "search -rw"
bind M-c "toggle -v case-sensitive-search"
bind M-j scroll-down
bind M-k scroll-up
bind M-l "toggle show-line-numbers"
bind M-a "select -b"
bind M-s select
bind M-t bof
bind M-e eof
bind M-m "run man $WORD"
bind M-\[ "msg -p"
bind M-] "msg -n"
bind M-, "shift -- -1"
bind M-. "shift 1"
bind M-< "shift -- -1"
bind M-> "shift 1"
bind S-tab "shift -- -1"

bind M-1 "view 1"
bind M-2 "view 2"
bind M-3 "view 3"
bind M-4 "view 4"
bind M-5 "view 5"
bind M-6 "view 6"
bind M-7 "view 7"
bind M-8 "view 8"
bind M-9 "view 9"
bind M-0 "view last"

# alt-shift 1 and alt-shift 2
bind M-! "move-tab left"
bind M-@ "move-tab right"

bind F1 "run man dex"

# alternative pageup/pagedown behavior
#bind pgup scroll-pgup
#bind pgdown scroll-pgdown

# move to next/prev function or global variable
#bind M-i "search -H  '^[a-zA-Z]'"
#bind M-o "search -Hr '^[a-zA-Z]'"

# grep word under cursor using GIT
#bind M-g 'compile -s1 grep git grep -n -w -e $WORD'
#bind M-G 'run -p git grep -n -w -e $WORD'

# Insert date and time (press first ^X and then t)
#bind '^X t' "pass-through -ms date '+%Y-%m-%d %H:%M'"

# Toggle 3 different values of ws-error option (whitespace error highlighting)
#bind F3 "toggle -v ws-error auto-indent,trailing trailing 0"
