簡體   English   中英

我該如何在VIM配置中進行更改? (刪除箭頭)

[英]What do I change in my VIM config to do this? (remove the arrows)

我的文件帶有此“隱形箭頭”,如何完全禁用它?

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

這是我的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>

紅色箭頭是這些線條的組合:

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

紅色箭頭是您在listchars tab:>-用於listcharslist設置處於打開狀態時顯示的文件中的制表符。

擺脫紅色箭頭的最簡單方法是更改

set list

set nolist

也可以嘗試:

:help listchars

有關信息

擺脫listchars設置 或者只是擺脫set list

您也可以在命令行中對此進行切換。 在普通模式下:

:set list!

...將切換列表模式( source )。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM