X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/5e84ddfd6dcd1a8797b8c678c94f9bffb0cd7800..d6c1a4935fbd3f1f1a37f442693b84b78bdc8575:/ftplugin/pass.vim diff --git a/ftplugin/pass.vim b/ftplugin/pass.vim index 1373778..66b91c7 100644 --- a/ftplugin/pass.vim +++ b/ftplugin/pass.vim @@ -6,6 +6,21 @@ let s:save_cpo = &cpoptions set compatible&vim +let s:default_settings = { + \ 'pw_length' : '12', + \ 'enable_syntax' : 'true', + \ } + +if ! exists('g:password_store_settings') + let g:password_store_settings = {} +endif + +for s:setting in keys(s:default_settings) + if ! has_key( g:password_store_settings, s:setting ) + let g:password_store_settings[s:setting] = s:default_settings[s:setting] + endif +endfor + if ! exists('g:password_store_pw_length') let g:password_store_pw_length = 12 endif