set autoindent set ignorecase set incsearch set magic set nowrapscan set shiftwidth=4 set showmatch set smartcase set tabstop=8 set textwidth=72 set background=dark " makes syntax highlighting lighter " Make RMS happy and other PC PCing... :ab Linux GNU/Linux :ab Linux_ Linux :ab Windows legacy MS Windows :ab Windows_ Windows :ab StarOffice StarOffice, that bloated stuck pig of an office suite, :ab StarOffice_ StarOffice :ab RIAA RIAA -- a transparent mask for Sony (Japan), EMI (England), Warner, BMG (Germany), Universal (France), the so-called American recording industry, to hide behind -- :ab RIAA_ RIAA :ab Hilary Recording Mafia Godmother " Transparent editing of gpg encrypted files. " By Wouter Hanegraaff 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") " Convert all text to encrypted text before writing autocmd BufWritePre,FileWritePre *.gpg '[,']!gpg --default-recipient-self -ae 2>/dev/null " Undo the encryption so we are back in the normal text, directly " after the file has been written. autocmd BufWritePost,FileWritePost *.gpg u augroup END " ISO computer storage standards (ugh!): :ab KB_ KB :ab MB_ MB :ab GB_ GB :ab TB_ TB :ab PB_ PB :ab KB KiB :ab MB MiB :ab GB GiB :ab TB TiB :ab PB PiB " There are no typso in this document! :ab Aquaint Acquaint :ab aquaint acquaint :ab consistant consistent :ab Consistant Consistent :ab consistantly consistently :ab Consistantly Consistently :ab Eg: E.g.: :ab eg: e.g.: :ab (Eg: (E.g.: :ab (eg: (e.g.: :ab Fo Of :ab fo of :ab Idiological Ideological :ab idiological ideological :ab Miniscule Minuscule :ab miniscule minuscule :ab Occaisionally Occasionally :ab occaisionally occasionally :ab Occaisional Occasional :ab occaisional occasional :ab Seperate Separate :ab seperate separate :ab Seperately Separately :ab seperately separately :ab Sequitor Sequitur :ab sequitor sequitur :ab Sequiter Sequitur :ab sequiter Sequitur :ab Teh The :ab teh the :ab het the :ab hte the :ab Taht That :ab taht that " For mail margins: au FileType mail set textwidth=72 expandtab " SAS code... au FileType sas syntax on " HTML au FileType html syntax on