Use backward compatible version of shiftwidth()

This commit is contained in:
mMontu
2015-01-08 14:14:16 -02:00
parent b89c22fe03
commit edb72680a1
3 changed files with 16 additions and 5 deletions

View File

@ -52,3 +52,14 @@ endfunction "}}}
function vimwiki#u#reload_regexes_custom() "{{{
execute 'runtime! syntax/vimwiki_'.VimwikiGet('syntax').'_custom.vim'
endfunction "}}}
" Backward compatible version of the built-in function shiftwidth()
if exists('*shiftwidth') "{{{
func vimwiki#u#sw()
return shiftwidth()
endfunc
else
func vimwiki#u#sw()
return &sw
endfunc
endif "}}}