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

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
How to create key binding to set XML syntax?
How to bypass a bindkey directive in GNU screen?
XMonad keybindings doesn't work
Get file path + file name in a keybindings file in Sublime Text 2
GNU screen custom key bindings format
Sublime Text 2 up/down arrow movement keybinding

Categories

HOME
ckan
stata
ssh
azure-resource-manager
arguments
app-store
terminal
sugarcrm
mediarecorder
powerquery
atlassian-fisheye
cdn
markdown
genexus
promotions
olap
jcodemodel
yui
bookmarklet
game-engine
facebook-marketing-api
reportlab
ibatis
alert
legend-properties
gomobile
opengraph
v4l2
marionette
typeclass
mobile-development
undo
overflow
jmsserializerbundle
jql
storefront
gitosis
tunnel
ansible-inventory
queryover
word-wrap
usernotifications
google-cloud-powershell
datagridviewcombobox
colorbox
wufoo
smooth-streaming
nshttpurlresponse
inner-join
geminabox
monaca
jscoverage
sharpdevelop
r-commander
google-scholar
easy-thumbnails
mongodb-3.3
magick.net
containstable
videoview
markerspiderfier
google-finance-api
ewam
angular-promise
personality-insights
azure-mobile-app
joomla3.3
eaaccessory
eggplant
cakephp-2.6
ultraedit
xmla
teamstudio-unplugged
qxorm
zoneminder
image-preloader
email-headers
fastcgi-mono-server
nvcc
ekevent
ardor3d
friendly-id
myrrix
static-class
stringstream
windows-scheduler
nsautoreleasepool
phone-state-listener
blotter
configurationsection
esi
systrace
bindinglist
socketasynceventargs
wxperl
project-files
visual-leak-detector
mscorlib
sessiontracking
designated-initializer
n2
fxcopcmd
virtual-destructor
database-agnostic
linq-to-mysql
webdb
file-storage
expander

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