小编BiG*_*YaN的帖子

Vim 不在 tmux 中运行

当我尝试在整个窗口vim内使用打开文件时会tmux冻结。我必须用C-a &.

这是我的~/.vimrc设置:

:set autoindent
:set ts=4
:set number
:set shiftwidth=4
:set showmode
:filetype on
:filetype plugin on
:syntax enable
:set mouse=a
Run Code Online (Sandbox Code Playgroud)

~/.tmux.conf

# I like Ctrl-a as the default hotkey
unbind C-b
set-option -g prefix C-a

# Split window using | and -
unbind %
bind | split-window -h
bind - split-window -v

# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left ‘#[fg=green]#H’

# …
Run Code Online (Sandbox Code Playgroud)

vim tmux

15
推荐指数
1
解决办法
7985
查看次数

更改 TTY 中的行数和列数

我想调整,当你按下它出现的终端CtrlAltF1(或F2F3...)。25x80 对于 24" 屏幕来说很小。

尝试使用stty,但命令stty columns 200stty rows 50不能直接工作。我是不是遗漏了什么,或者这是一种错误的方法。

理想情况下寻找一个通用的解决方案,但会满足于在 RHEL5 和 Ubuntu 中工作的东西。如果可以使用一些我可以放在脚本文件中的命令而不是更改一些引导级别的东西,那就更好了。

linux terminal tty console

14
推荐指数
1
解决办法
5万
查看次数

标签 统计

console ×1

linux ×1

terminal ×1

tmux ×1

tty ×1

vim ×1