mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-15 08:09:11 +08:00
Set indentation only if default_indent is positive (#4116)
Sometimes `tapstop`, `softtabstop` and `shiftwidth` may need to be set separately to different values in a bootstrap function.
This commit is contained in:
parent
ce89a20ad1
commit
0c1e49eb1d
@ -1359,9 +1359,12 @@ function! SpaceVim#end() abort
|
|||||||
" tab options:
|
" tab options:
|
||||||
set smarttab
|
set smarttab
|
||||||
let &expandtab = g:spacevim_expand_tab
|
let &expandtab = g:spacevim_expand_tab
|
||||||
let &tabstop = g:spacevim_default_indent
|
|
||||||
let &softtabstop = g:spacevim_default_indent
|
if g:spacevim_default_indent > 0
|
||||||
let &shiftwidth = g:spacevim_default_indent
|
let &tabstop = g:spacevim_default_indent
|
||||||
|
let &softtabstop = g:spacevim_default_indent
|
||||||
|
let &shiftwidth = g:spacevim_default_indent
|
||||||
|
endif
|
||||||
|
|
||||||
let g:unite_source_menu_menus =
|
let g:unite_source_menu_menus =
|
||||||
\ get(g:,'unite_source_menu_menus',{})
|
\ get(g:,'unite_source_menu_menus',{})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user