X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/5e46c4df650e55e4f00295f9063486b32a664019..a8037bb8cc8b46d506e43005acebb1e96e090ae5:/ftplugin/pass.vim?ds=sidebyside diff --git a/ftplugin/pass.vim b/ftplugin/pass.vim index 1373778..c6a2680 100644 --- a/ftplugin/pass.vim +++ b/ftplugin/pass.vim @@ -5,11 +5,6 @@ let g:did_pass = 'did_pass_ftplugin' let s:save_cpo = &cpoptions set compatible&vim - -if ! exists('g:password_store_pw_length') - let g:password_store_pw_length = 12 -endif - nmap rotate_password :call password_store#replace() if ! hasmapto( '\rotate_password', 'n') nmap rotate_password @@ -55,5 +50,9 @@ endfunction command! Conceal call conceal_pass() normal! GG +augroup password_settings_late_load + autocmd! + autocmd FileReadPost if &filetype == 'pass' | echom 'autocmd triggered' | let b:load_pass_syntax = 1 | source 'syntax/pass.vim' | endif +augroup end " Cleanup at end let &cpoptions = s:save_cpo