0

我终于开始从 aterm 迁移到 urxvt 并按照我想要的方式设置大多数东西,但我仍然对 vim 有一个悬而未决的问题。当我发出 :vsplit 命令时,每个窗口底部的显示文件名的文本在(几乎)白色背景上是白色的,使其不可读。在 aterm 中,该测试在 while 背景上显示为黑色。

什么设置控制这个?我在其他地方没有注意到这个问题,但也没有真正寻找它。

这是我的 .vimrc

" .vimrc
" See: http://vimdoc.sourceforge.net/htmldoc/options.html for details

" For multi-byte character support (CJK support, for example):
"set fileencodings=ucs-bom,utf-8,cp936,big5,euc-jp,euc-kr,gb18030,latin1

set tabstop=4       " Number of spaces that a <Tab> in the file counts for.

set shiftwidth=4    " Number of spaces to use for each step of (auto)indent.

"set expandtab       " Use the appropriate number of spaces to insert a <Tab>.
                    " Spaces are used in indents with the '>' and '<' commands
                    " and when 'autoindent' is on. To insert a real tab when
                    " 'expandtab' is on, use CTRL-V <Tab>.

"set smarttab        " When on, a <Tab> in front of a line inserts blanks
                    " according to 'shiftwidth'. 'tabstop' is used in other
                    " places. A <BS> will delete a 'shiftwidth' worth of space
                    " at the start of the line.

set showcmd         " Show (partial) command in status line.

set number          " Show line numbers.

set showmatch       " When a bracket is inserted, briefly jump to the matching
                    " one. The jump is only done if the match can be seen on the
                    " screen. The time to show the match can be set with
                    " 'matchtime'.

set hlsearch        " When there is a previous search pattern, highlight all
                    " its matches.

set incsearch       " While typing a search command, show immediately where the
                    " so far typed pattern matches.

set ignorecase      " Ignore case in search patterns.

set smartcase       " Override the 'ignorecase' option if the search pattern
                    " contains upper case characters.

set backspace=2     " Influences the working of <BS>, <Del>, CTRL-W
                    " and CTRL-U in Insert mode. This is a list of items,
                    " separated by commas. Each item allows a way to backspace
                    " over something.

set autoindent      " Copy indent from current line when starting a new line
                    " (typing <CR> in Insert mode or when using the "o" or "O"
                    " command).

set textwidth=0    " Maximum width of text that is being inserted. A longer
                    " line will be broken after white space to get this width.

set formatoptions=c,q,r,t " This is a sequence of letters which describes how
                    " automatic formatting is to be done.
                    "
                    " letter    meaning when present in 'formatoptions'
                    " ------    ---------------------------------------
                    " c         Auto-wrap comments using textwidth, inserting
                    "           the current comment leader automatically.
                    " q         Allow formatting of comments with "gq".
                    " r         Automatically insert the current comment leader
                    "           after hitting <Enter> in Insert mode. 
                    " t         Auto-wrap text using textwidth (does not apply
                    "           to comments)

set ruler           " Show the line and column number of the cursor position,
                    " separated by a comma.

set background=dark " When set to "dark", Vim will try to use colors that look
                    " good on a dark background. When set to "light", Vim will
                    " try to use colors that look good on a light background.
                    " Any other value is illegal.

set mouse=a         " Enable the use of the mouse.

set undofile
set undodir=$HOME/.vim/undodir
set undolevels=1000 "maximum number of changes that can be undone
set undoreload=10000 "maximum number lines to save for undo on a buffer reload 

filetype plugin indent on
syntax on
let g:Imap_UsePlaceHolders = 0
let g:Tex_EnvironmentMaps = 0
let g:Tex_FontMaps = 0
let g:Tex_SectionMaps = 0
let g:Tex_SmartKeyBS = 0
let g:Tex_SmartKeyQuote = 0
let g:Tex_SmartKeySpace = 0
let g:Tex_SmartKeyDot = 0
let g:Tex_DefaultTargetFormat = 'pdf'
let g:Tex_MultipleCompileFormats = 'pdf dvi'
let g:Tex_EscapeChars = '\'

let g:tex_flavor = "latex"

" arduino syntax
autocmd! BufNewFile,BufRead *.pde setlocal ft=arduino

call pathogen#infect()
call pathogen#helptags()

和 .Xresources

! urxvt settings


!--[Title]--!

!URxvt*title:           urxvt
URxvt*termName:        rxvt-256color
URxvt*termName:        rxvt
URxvt*cursorBlink:     true
URxvt*urgentOnBell:    true

!--[URL Select]--!
URxvt.perl-ext-common:  default,url-select
URxvt.keysym.M-u:       perl:url-select:select_next
URxvt.urlLauncher:      chromium
URxvt.underlineURLs:    true

!--[Fonts]--!

URxvt.font: 9x15
!URxvt.font: -*-terminus-*-*-*-*-14-*-*-*-*-*-*-u
!URxvt.font: -*-droid sans mono-*-*-*-*-12-*-*-*-*-*-*-u
!URxvt.font:               xft:terminus:pixelsize=10:antialias=true
!
URxvt.scrollBar:         false
URxvt.skipBuiltinGlyphs: true

!--[Urxvt Options]--!

URxvt.boldMode:          false
!URxvt.imLocale:          en_US.UTF-8
URxvt.loginShell:        true
URxvt.saveLines:         4096
!urxvt.geometry:          110x40
URxvt.borderless:        true
!URxvt.xftAntialias:      true
URxvt.jumpScroll:        true
!URxvt.tintColor:         white
URxvt.internalBorder:    0
URxvt.cursorBlink:       false
URxvt.cursorColor:       #dd9900
URxvt.cursorColor2:      #000000
URxvt.background:        #FFFFFF
URxvt.foreground:        #ddccbb
URxvt.colorBD:           #ffffff
URxvt.colorIT:           #bbbbbb
URxvt.colorUL:           #999999
URxvt.underlineColor:    #999999
!Xcursor.theme: CG

!## teh transparency stuff
URxvt.inheritPixmap: true
URxvt.tintColor: white
URxvt.shading: 0


! xscreensaver ---------------------------------------------------------------

xscreensaver.Dialog.headingFont:        -*-dina-bold-r-*-*-10-*-*-*-*-*-*-*
xscreensaver.Dialog.bodyFont:           -*-dina-medium-r-*-*-10-*-*-*-*-*-*-*
xscreensaver.Dialog.labelFont:          -*-dina-medium-r-*-*-10-*-*-*-*-*-*-*
xscreensaver.Dialog.unameFont:          -*-dina-medium-r-*-*-10-*-*-*-*-*-*-*
xscreensaver.Dialog.buttonFont:         -*-dina-bold-r-*-*-10-*-*-*-*-*-*-*
xscreensaver.Dialog.dateFont:           -*-dina-medium-r-*-*-10-*-*-*-*-*-*-*
xscreensaver.passwd.passwdFont:         -*-dina-bold-r-*-*-10-*-*-*-*-*-*-*
!general dialog box (affects main hostname, username, password text)

xscreensaver.Dialog.foreground:         #ffffff
xscreensaver.Dialog.background:         #000000
xscreensaver.Dialog.topShadowColor:     #000000
xscreensaver.Dialog.bottomShadowColor:  #000000
xscreensaver.Dialog.Button.foreground:  #666666
xscreensaver.Dialog.Button.background:  #ffffff
!username/password input box and date text colour
xscreensaver.Dialog.text.foreground:    #666666
xscreensaver.Dialog.text.background:    #ffffff
xscreensaver.Dialog.internalBorderWidth:24
xscreensaver.Dialog.borderWidth:        20
xscreensaver.Dialog.shadowThickness:    2
!timeout bar (background is actually determined by Dialog.text.background)
xscreensaver.passwd.thermometer.foreground:  #666666
xscreensaver.passwd.thermometer.background:  #000000
xscreensaver.passwd.thermometer.width:       8

! terminal colors ------------------------------------------------------------


URxvt*background: #000000
URxvt*foreground: #bfbdc0

!black
URxvt*color0: #000000
URxvt*color8: #686773

!red
URxvt*color1: #cd0000
URxvt*color9: #ff0000

!green
URxvt*color2: #00cd00
URxvt*color10:#00ff00

!yellow
URxvt*color3: #cdcd00
URxvt*color11:#ffff00

!blue
URxvt*color4: #6767cd
URxvt*color12:#6767ff

!purple
URxvt*color5: #cd00cd
URxvt*color13:#ff00ff

!cyan
URxvt*color6: #00cdcd
URxvt*color14:#00ffff

!white
URxvt*color7: #faebd7
URxvt*color15:#ffffff

! attempt to get vim to read the colors correctly
URxvt.intensityStyles:  false
4

1 回答 1

0
:hi StatusLine
:help hl-StatusLine

(对评论的回应。)如果您需要更多上下文,请向上滚动到该部分的顶部(或:help highlight-default):

These are the default highlighting groups.  These groups are used by the
'highlight' option default.  Note that the highlighting depends on the value
of 'background'.  You can see the current settings with the ":highlight"
command.

您描述的显示文件名的行是状态行。(:help status-line如果需要更多上下文,请向上滚动。)控制状态行显示的设置是StatusLine高亮组(不是选项)。例如,您可以使用 来检查当前设置:hi StatusLine,也可以使用来更改它。

:hi StatusLine term=bold cterm=bold

查看:help :highlight更多选项。

于 2014-01-31T23:17:56.113 回答