플러그인을 사용해 보았지만 vim-indentguides
잘 작동하지 않아서 다음을 사용하여 제거하기로 결정했습니다.플러그. 제거 후 nvim은 ^I
탭 대신 씁니다. 어떻게 해결할 수 있나요?
여기 내 init.vim과 문제의 데모가 있습니다:
" PLUGINS
call plug#begin()
^IPlug 'vim-airline/vim-airline'
^IPlug 'vim-airline/vim-airline-themes'
^IPlug 'SirVer/ultisnips'
^IPlug 'honza/vim-snippets'
call plug#end()
" TABS
set tabstop=4 shiftwidth=4^I" set tab size to 4 spaces
set autoindent smartindent ^I" make intending a bit more clever
filetype plugin indent on
" UI
set cursorline ^I^I^I" highlight the current line
set nu ^I^I^I^I^I^I" line numbering
" set signcolumn=numbers^I^I" merge number and signs in to one column
set scrolloff=4^I^I^I^I" show at least 4 lines above or below
set list!^I^I^I^I^I" visualize tabs
"set listchars=tab:>-^I^I" set tabs to >--- a
set listchars=trail:~" ^I^I" trail spaces to ~
" CODING
syntax on^I^I^I^I^I" highlight syntax
set colorcolumn=88 ^I^I" ruler python convention
" EDITOR BEHAVIOR
"set nowrap ^I^I^I" disable word wrapping
set linebreak ^I^I^I" break on words only if wrap is enabled
set breakindent ^I^I^I" indent broken lines only if wrap is enabled
nnoremap j gj
nnoremap k gk
" PERFORMANCE AND SECURITY
set lazyredraw ^I^I^I" redraw only when it is necessary
set ttimeoutlen=0 ^I^I^I" set delay after exiting visual mode to 0
set autoread ^I^I^I^I" automatically read files when reloaded outside Nvim
set autochdir ^I^I^I^I" automatically change directory to current file
set undofile^I^I^I^I" undo backup
" COMMANDS
set showcmd ^I^I^I^I" shows last issued command
set wildmenu ^I^I^I^I" show command suggestions
" SPELL CHECKING
command Sc :set spell spelllang=cz,en_us
command Sccz :set spell spelllang=cz
command Scen :set spell spelllang=en_us
command Scno :set nospell
당신의 도움을 주셔서 감사합니다
답변1
구성 파일에서:
set list!^I^I^I^I^I" visualize tabs
탭을 시각화하지 않으려면 이 list
옵션을 설정하지 마세요. 현재 세션에서 탭 시각화를 끄려면 :set nolist
대화형으로 사용하세요.