我在VIM配置中如何更改以执行此操作? (删除箭头)

时间:2010-07-01 06:53:33

标签: linux unix vim

我的文件有这个“隐形箭头” 如何完全禁用此功能?

  

---> ---> ---> ---

这是我的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>
filetype indent on
filetype on
filetype plugin on
set pastetoggle=<F5>
imap <C-Right> <End>
imap <C-Left> <Home>
imap <C-Down> <PageDown>
imap <C-Up> <PageUp>

nmap <C-Right> <End>
nmap <C-Left> <Home>
nmap <C-Down> <PageDown>
nmap <C-Up> <PageUp>

2 个答案:

答案 0 :(得分:6)

红色箭头是这些线的组合:

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

红色箭头是tab:>- listcharslist设置开启时显示的文件中的标签字符。

摆脱红色箭头的最简单方法是改变

set list

set nolist

还可以尝试:

:help listchars

获取信息

答案 1 :(得分:3)

摆脱listchars settings。或者只是摆脱set list

您也可以从命令行切换它。从正常模式:

:set list!

...将切换列表模式(source)。

相关问题