[ale] How do you store your passwords?

Paul Cartwright ale at pcartwright.com
Sat Nov 10 12:43:22 EST 2007


On Sat November 10 2007 12:14 pm, George Allen wrote:
> augroup encrypted
> ? ? au!
>
> ? ? " First make sure nothing is written to ~/.viminfo while editing
> ? ? " an encrypted file.
> ? ? autocmd BufReadPre,FileReadPre ? ? ?*.gpg set viminfo=
> ? ? " We don't want a swap file, as it writes unencrypted data to disk
> ? ? autocmd BufReadPre,FileReadPre ? ? ?*.gpg set noswapfile
> ? ? " Switch to binary mode to read the encrypted file
> ? ? autocmd BufReadPre,FileReadPre ? ? ?*.gpg set bin
> ? ? autocmd BufReadPre,FileReadPre ? ? ?*.gpg let ch_save = &ch|set ch=2
> ? ? autocmd BufReadPost,FileReadPost ? ?*.gpg '[,']!gpg --decrypt 2>
> /dev/null " Switch to normal mode for editing
> ? ? autocmd BufReadPost,FileReadPost ? ?*.gpg set nobin
> ? ? autocmd BufReadPost,FileReadPost ? ?*.gpg let &ch = ch_save|unlet
> ch_save autocmd BufReadPost,FileReadPost ? ?*.gpg execute ":doautocmd
> BufReadPost " . expand("%:r")

when I did this, I got an error:
Error detected while processing /usr/share/vim/vimrc:
line   75:
E492: Not an editor command: BufReadPost " . expand("%:r")
--- Auto-Commands ---
line   79:
E20: Mark not set
Press ENTER or type command to continue

otherwise, it worked:)

-- 
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459



More information about the Ale mailing list