tmux 复制与粘贴
2016-01-06 08:22
309 查看
转载自:http://blog.csdn.net/yangzhongxuan/article/details/6890232
之前tmux的复制模式没有学会,网上文档有很少,所以试了很多次,终于能复制了。
设置复制模式中的默认键盘布局;可以设置为vi或emacs,我是把这个设置写入了配置文件。
set-window-option -g mode-keys vi #可以设置为vi或emacs
set-window-option -g utf8 on #开启窗口的UTF-8支持
tmux复制模式的命令表:
Function vi emacs
Back to indentation ^ M-m
Clear selection Escape C-g
Copy selection Enter M-w
Cursor down j Down
Cursor left h Left
Cursor right l Right
Cursor to bottom line L
Cursor to middle line M M-r
Cursor to top line H M-R
Cursor up k Up
Delete entire line d C-u
Delete to end of line D C-k
End of line $ C-e
Goto line : g
Half page down C-d M-Down
Half page up C-u M-Up
Next page C-f Page down
Next word w M-f
Paste buffer p C-y
Previous page C-b Page up
Previous word b M-b
Quit mode q Escape
Scroll down C-Down or J C-Down
Scroll up C-Up or K C-Up
Search again n n
Search backward ? C-r
Search forward / C-s
Start of line 0 C-a
Start selection Space C-Space
Transpose chars C-t
复制模式步骤:
我的控制键为:C-b
1、 C-b [ 进入复制模式
2、 参考上表移动鼠标到要复制的区域,移动鼠标时可用vim的搜索功能"/","?"
3、 安空格键开始选择复制区域
4、 选择完成后安enter键退出
5、 C-b ] 粘贴
linux 终端下可以用 man tmux 查看更详细的说明。
之前tmux的复制模式没有学会,网上文档有很少,所以试了很多次,终于能复制了。
设置复制模式中的默认键盘布局;可以设置为vi或emacs,我是把这个设置写入了配置文件。
set-window-option -g mode-keys vi #可以设置为vi或emacs
set-window-option -g utf8 on #开启窗口的UTF-8支持
tmux复制模式的命令表:
Function vi emacs
Back to indentation ^ M-m
Clear selection Escape C-g
Copy selection Enter M-w
Cursor down j Down
Cursor left h Left
Cursor right l Right
Cursor to bottom line L
Cursor to middle line M M-r
Cursor to top line H M-R
Cursor up k Up
Delete entire line d C-u
Delete to end of line D C-k
End of line $ C-e
Goto line : g
Half page down C-d M-Down
Half page up C-u M-Up
Next page C-f Page down
Next word w M-f
Paste buffer p C-y
Previous page C-b Page up
Previous word b M-b
Quit mode q Escape
Scroll down C-Down or J C-Down
Scroll up C-Up or K C-Up
Search again n n
Search backward ? C-r
Search forward / C-s
Start of line 0 C-a
Start selection Space C-Space
Transpose chars C-t
复制模式步骤:
我的控制键为:C-b
1、 C-b [ 进入复制模式
2、 参考上表移动鼠标到要复制的区域,移动鼠标时可用vim的搜索功能"/","?"
3、 安空格键开始选择复制区域
4、 选择完成后安enter键退出
5、 C-b ] 粘贴
linux 终端下可以用 man tmux 查看更详细的说明。
相关文章推荐
- 如何在 CentOS 7 / Ubuntu 15.04 上安装 PHP 框架 Laravel
- CSDN博文大赛赛况简报
- yii2学习笔记--修改css和js文件(未完成)
- 一个比较简单的 newFixedThreadPool多线程实现
- MCMC: Metropolis-Hastings, Gibbs and slice sampling
- centos7 安装mysql
- OSChina 周三乱弹 —— 人和咸鱼的区别
- Android 实现环形进度按钮circular-progress-button
- iOS性能分析工具
- windows2003上10G oracle的备份
- linux下的usb抓包方法
- eclipse更换工作空间时配置还原的问题
- android学习8——获取view在屏幕上的绝对坐标
- simpleAdapter的原理及使用
- eclipse注释模板设置
- 求重叠区间个数,某书某题错例分析
- Lintcode: Permutation Index
- NSSet 1
- 2016{太原网络营销师}郭文军讲解做网站必须了解的点
- 设计模式(四):策略模式