我的文件有这个"隐形箭头"如何完全禁用它?
---> ---> ---> ---
这是我的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>
Run Code Online (Sandbox Code Playgroud)
红色箭头是这些线的组合:
set listchars=tab:>-,trail:~
set list
Run Code Online (Sandbox Code Playgroud)
红色箭头是当tab:>-
for listchars
和list
设置打开时正在显示的文件中的制表符.
摆脱红色箭头的最简单方法是改变
set list
Run Code Online (Sandbox Code Playgroud)
至
set nolist
Run Code Online (Sandbox Code Playgroud)
还试试:
:help listchars
Run Code Online (Sandbox Code Playgroud)
信息