1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 03:00:04 +08:00

Fix g:spacevim_windows_index_type

This commit is contained in:
wsdjeg 2017-09-20 21:24:57 +08:00
parent 6ceea6e48f
commit a6333fb3fc
3 changed files with 18 additions and 8 deletions

View File

@ -272,6 +272,7 @@ let g:spacevim_buffer_index_type = 0
" " 0: 1 ➛ ➊
" " 1: 1 ➛ ➀
" " 2: 1 ➛ ⓵
" " 3: 1 ➛ 1
" let g:spacevim_windows_index_type = 1
" <
let g:spacevim_windows_index_type = 0

View File

@ -132,10 +132,18 @@ endif
function! s:winnr(...) abort
if a:0 > 1
if g:spacevim_windows_index_type == 3
return ' ' . winnr() . ' '
else
return ' ' . s:MESSLETTERS.circled_num(winnr(), g:spacevim_windows_index_type) . ' '
endif
else
if g:spacevim_windows_index_type == 3
return '%{SpaceVim#layers#core#statusline#mode(mode())} ' . winnr() . ' '
else
return '%{SpaceVim#layers#core#statusline#mode(mode())} ' . s:MESSLETTERS.circled_num(winnr(), g:spacevim_windows_index_type) . ' '
endif
endif
endfunction
function! s:filename() abort

View File

@ -303,6 +303,7 @@ Set SpaceVim windows index type, default is 0.
" 0: 1 ➛ ➊
" 1: 1 ➛ ➀
" 2: 1 ➛ ⓵
" 3: 1 ➛ 1
let g:spacevim_windows_index_type = 1
<