Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos Vim zenburn没有';我不能在mac电脑屏幕下工作_Macos_Vim_Terminal_Gnu Screen - Fatal编程技术网

Macos Vim zenburn没有';我不能在mac电脑屏幕下工作

Macos Vim zenburn没有';我不能在mac电脑屏幕下工作,macos,vim,terminal,gnu-screen,Macos,Vim,Terminal,Gnu Screen,我试图在vim下的OSX上使用zenburn。然而,每当我在屏幕下使用vim时,背景是黑色而不是灰色。我需要在屏幕上设置颜色设置吗 这是我的屏幕: vbell off vbell_msg "Ring" # detach on hangup autodetach on # don't display copyright page startup_message off # scroll back defscrollback 10000 # setup the caption hardsta

我试图在vim下的OSX上使用zenburn。然而,每当我在屏幕下使用vim时,背景是黑色而不是灰色。我需要在屏幕上设置颜色设置吗

这是我的屏幕:

vbell off
vbell_msg "Ring"

# detach on hangup
autodetach on

# don't display copyright page
startup_message off

# scroll back
defscrollback 10000

# setup the caption
hardstatus alwayslastline "%{-b gk}%-w%{+b kg}%50>%n %t%{-b gk}%+w %=%C%<"

# right/left bindings
bindkey "^[[c" next
bindkey "^[[d" prev
bindkey "^[[b" focus

# screen 256 color support
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce "on"

# Make terminal scrolling work properly with screen
termcapinfo xterm-256color|xterm-color|xterm|xterms|xs|rxvt ti@:te@

shell -${SHELL}
vbell关闭
vbell_msg“环”
#挂机时分离
自动分离打开
#不显示版权页
启动信息关闭
#向后滚动
反滚动10000
#设置标题

hardstatus alwayslastline“%{-bGk}%-w%{+bKg}%50>%n%t%{-bGk}%+w%=%C%我看到了很多设置,但没有
术语screen-256color
。你用的是什么$term?(我不能给出一个真正的答案,因为我不在Mac上看屏幕,但我确实有Zenburn和其他256色方案在OSX的屏幕下正常工作)。好的,我可以检查我的OSX屏幕RC。我唯一与你有显著不同的是
term xterm-256color
altscreen on
。我没有termcapinfo的任何细节,但这些可能不会像你的那样有害。在vim中,尝试
:设置背景=暗
:设置背景=亮
和see如果这改变了什么。您也可以尝试以下方法: