diff --git a/home/tmux.conf b/home/tmux.conf index 99a7378..26fc006 100644 --- a/home/tmux.conf +++ b/home/tmux.conf @@ -31,10 +31,13 @@ set -g display-time 2500 # jump into copy-mode for Shift+PgUp, scroll half a page instead of a full page # switching modes is not ideal but it's the only way to scroll within tmux bind -n S-PgUp copy-mode \; send-keys -X halfpage-up +bind -n S-Home copy-mode \; send-keys -X history-top -# bind Shift+PgUp/PgDn to Do The Right Thing™ +# bind Shift+PgUp/PgDn/Home/End to Do The Right Thing™ bind -T copy-mode-vi S-PgUp send-keys -X halfpage-up bind -T copy-mode-vi S-PgDn send-keys -X halfpage-down +bind -T copy-mode-vi S-Home send-keys -X history-top +bind -T copy-mode-vi S-End send-keys -X history-bottom # Ctrl+PgUp/PgDn to navigate windows (like web browsers) bind -n C-PgUp previous-window diff --git a/home/vimrc b/home/vimrc index 050b086..ca4f590 100644 --- a/home/vimrc +++ b/home/vimrc @@ -248,6 +248,14 @@ Inn :m+1 Inn :tabm -1 Inn :tabm +1 +" jump to top and bottom +Inn gg +Inn G +nn [1;5H gg +nn [1;5F G +ino [1;5H gg +ino [1;5F G + " hide search highlighting Inn :nohls