diff options
author | Oxbian <oxbian@mailbox.org> | 2025-06-12 21:40:13 -0400 |
---|---|---|
committer | Oxbian <oxbian@mailbox.org> | 2025-06-12 21:40:13 -0400 |
commit | 4a752828e3d9f1aaab6f16a07a0114417bf2f89e (patch) | |
tree | 4a05195a4cbe98ef05edc5c36feb2c78040828b0 | |
parent | 1e4633737b636fd29cfe4add6752aea73639be0c (diff) | |
download | vimrc-4a752828e3d9f1aaab6f16a07a0114417bf2f89e.tar.gz vimrc-4a752828e3d9f1aaab6f16a07a0114417bf2f89e.zip |
feat: tabs and space are showed
-rw-r--r-- | conf/options.vim | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/conf/options.vim b/conf/options.vim index 8e84a25..395ee52 100644 --- a/conf/options.vim +++ b/conf/options.vim @@ -10,7 +10,7 @@ set number " Show line number colorscheme onedark " Set vim theme to onedark set colorcolumn=80 " Add an indicator for 80 char limit set textwidth=80 " Set max text width -autocmd BufNewFile,BufRead * setlocal formatoptions=cropt " Linebreak at 80 char +"autocmd BufNewFile,BufRead * setlocal formatoptions=cropt " Linebreak at 80 char set relativenumber " Show relative line number set cursorline " Select the current line set showmatch " Show matching brackets when hovered @@ -55,9 +55,9 @@ source $VIMRUNTIME/menu.vim " Ignore compiled files set wildignore=*.o,*~,*.pyc if has("win16") || has("win32") - set wildignore+=.git\*,.hg\*,.svn\* + set wildignore+=.git\*,.hg\*,.svn\* else - set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store + set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store endif " Configure backspace so it acts as it should act @@ -82,3 +82,15 @@ set noswapfile " Timeout set timeoutlen=500 + +"\u21A6 is ⇥ +"set listchars=eol:$,tab:⇥¬¬,trail:·,extends:>,precedes:<,space:· +" 0x1F862 is 🡢 +" https://vi.stackexchange.com/questions/422/displaying-tabs-as-characters +set list +set listchars=tab:🡢\ ,trail:·,extends:>,precedes:<,space:· +" Set the list char color +" https://vi.stackexchange.com/questions/6136/how-to-dim-characters-from-set-list/6140#6140 +" :hi SpecialKey ctermfg=grey guifg=grey50 +" https://gist.github.com/morumo/9405368 +:hi SpecialKey ctermfg=darkgray guifg=gray70 |