有人可以帮我修复我的vimrc配置吗?

时间:2010-03-19 23:28:14

标签: linux unix vi vim

set nohlsearch
set ai
set bg=dark
set showmatch
highlight SpecialKey ctermfg=DarkGray
set listchars=tab:>-,trail:~
set list
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
set tabstop=4
set shiftwidth=4
set expandtab
set autoindent
set smartindent
syntax on
set listchars=tab:>-
set listchars+=trail:.
set ignorecase
set smartcase
map <C-t><up> :tabr<cr>
map <C-t><down> :tabl<cr>
map <C-t><left> :tabp<cr>
map <C-t><right> :tabn<cr>
map <F1> <Esc>
imap <F1> <Esc>
set pastetoggle=<F5>

这是我的vimrc。我想修复它,以便它不显示&gt; ----&gt; ----当其他人选项卡时。感谢。

2 个答案:

答案 0 :(得分:2)

删除以下行:

set listchars=tab:>-,trail:~
set listchars=tab:>-

答案 1 :(得分:1)

set list

正在这样做。你可以

:set nolist

如果它困扰你但我建议保留它用于python文件(你可能在python中编写代码看自动命令)。即。 ......学会爱它。如果是常规问题,请创建映射。

还有

:retab

如果您有expandtab设置,则删除标签。