key-bindings


Tmux Scroll Up/Down Page using Ctrl-b and Ctrl-f


Once in scroll-mode, how do I use Ctrl+b and Ctrl+f to scroll up and down pages?
These commands currently move back and forth between characters.
.tmux.conf
set -g default-terminal "screen-256color"
setw -g xterm-keys on
set -g status-bg black
set -g status-fg white
set -g history-limit 999999999
bind C-d detach
bind r source-file ~/.tmux.conf
set -g prefix C-z
if-shell 'test "$(tmux -V)" = "tmux 1.5"' 'set -g prefix C-a,C-z'
if-shell 'test "$(tmux -V)" = "tmux 1.6"' 'set -g prefix2 C-a'
if-shell 'test "$(tmux -V)" = "tmux 1.7"' 'set -g prefix2 C-a'
unbind C-b
bind C-a send-keys C-a
bind C-z send-keys C-z
# These are available in iTerm by default, but need to be explicitly configured
# in Terminal.app.
# S-Up: ^[[1;2A
# S-Down: ^[[1;2B
# S-Right: ^[[1;2C
# S-Left: ^[[1;2D
bind -n S-Up copy-mode
bind -n S-Down command-prompt
bind -n S-Right next-window
bind -n S-Left previous-window
#set -g base-index 1
set-window-option -g mode-keys vi
Add below into .tmux.conf, you can move like in vim use hjkl, Ctrl+D/Ctrl+U(PageDown/Up) in the tmux scroll mode. Even more, you can use / to search.
setw -g mode-keys vi
set -g status-keys vi
bind-key -t vi-edit Up history-up
bind-key -t vi-edit Down history-down
Hope this will help you :)

Related Links

home\ end keys in xterm not behaving correctly
Exporting ALL visual studio key actions (keyactions) for keybindings
How to setup a custom keybinding to run a script or execute a command in Atom editor?
Bind key prefix + ; to open command-prompt in tmux
keybinding to interchange keyboard language
Is there a move cursor to nearest '=' code navigation in IntelliJ?
Disabling Mousewheel Bind
Fish shell ESC/META keybinding with iterm2 on os x yosemite
XMonad: Is there a way to bind a simultaneously triggered keychord?
Simple key binding issue
unable to get C-PGUP or C-PGDOWN key codes in tmux
How do I override a default keybinding in LightTable?
Is it possible to change key bindings in Sublime Text dynamically from a plugin?
Ace Editor - Change CTRL+H keybinding
KeyBindings in Java stop working after component is remade
Tmux Scroll Up/Down Page using Ctrl-b and Ctrl-f

Categories

HOME
qlikview
joomla
repository
azure-documentdb
pelican
display
bigtable
ibm
conceptual
azure-database-mysql
boxplot
assign
singleton
google-docs-api
jshell
collision-detection
clip-path
rtc
coding-style
rename
activejdbc
core-data
virtualenv
box2d
openstack-horizon
infopath
samba
ringcentral
md2
civicrm
ampscript
datasource
descriptor
devexpress-mvc
quality-center
ithit-webdav-server
gsuite
inspec
windows-mobile
utc
units-of-measurement
pypy
pushpad
loopback
imdb
luhn
ports
availability
android-databinding
realloc
origami
server-side-swift
logan-square
django-cors-headers
niagara-ax
opos
skype-bots
audio-fingerprinting
enet
fluent-nhibernate-mapping
activesupport
msiexec
racket-student-languages
dimensionality-reduction
scriptengine
magick.net
qtruby
hfp
gdi
calc
hana-sql-script
containstable
oryx
dday
videoview
computability
magnet-uri
mojolicious
sdkman
adempiere
eggplant
data-representation
gcc-warning
cl.exe
chunks
cordova-3
information-hiding
os.walk
api-eveonline
vundle
nspopupbutton
banana-pi
sqldatasource
power-management
dylan
sygic
maven-webstart-plugin
android-library
mosix
azure-scheduler
latex-suite
qmainwindow
cloudmade
nx
vline
configurationsection
netbiscuits
derived-class
bash4
capitalization
object-tag
javah
lgpl
conditional-operator
virtual-destructor
google-local-search
table-valued-parameters
large-data-volumes
numerical-computing
coderush-xpress
authkit
html-help-workshop

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App