Improve Vim start-up time and allow buffer specific state keywords

This commit is contained in:
Alex Vear
2019-09-22 22:15:28 +01:00
parent c5113592c2
commit 9e067addad
3 changed files with 7 additions and 8 deletions

12
autoload/org.vim Normal file
View File

@@ -0,0 +1,12 @@
" Helper functions for org.vim
"
" Maintainer: Alex Vear <av@axvr.io>
" License: Vim (see `:help license`)
" Location: autoload/org.vim
" Website: https://github.com/axvr/org.vim
" Last Change: 2019-09-22
" Fallback chain for options. Buffer local --> Global --> default.
function org#option(name, default)
return get(b:, a:name, get(g:, a:name, a:default))
endfunction