" process only once if exists("b:did_ftplugin") || &compatible finish endif let b:did_ftplugin = 1 " this is a mail message setlocal filetype=mail " Don't make *~ backups setlocal nobackup " Ctrl-J for paragraph justification nnoremap vipgq nnoremap ,rr d/^-- O " autoinsert date on iab =strftime("%a %d %b %Y %T %Z") " spell checking ":source ~/.vim/plugin/vimspell.vim ":setlocal spell spelllang=en_ca,en_us,en setlocal spell spelllang=en " a respectable width for text setlocal textwidth=72 match Error80 /\%>75v.\+/ " highlight anything past 75 in red " no auto indent or smart indent setlocal noautoindent setlocal nosmartindent " mail format options " t auto-wrap comment " c allows textwidth to work on comments " q allows use of gq* for auto formatting " l don't break long lines in insert mode " r insert '*' on " o insert '*' on newline with 'o' " 2 inserts based on second line (to allow for indented paragraphs) setlocal formatoptions+=2