Improve Vim start-up time and allow buffer specific state keywords
This commit is contained in:
12
autoload/org.vim
Normal file
12
autoload/org.vim
Normal 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
|
||||
Reference in New Issue
Block a user