Perl Tidy and Vim

Perl Tidy and Vim Options I find useful. Mostly so I have it conveniently located for future machines.

Perl Tidy Options

-l=78     # max line width
-i=4       # Indent level 4 cols
-ci=4     # Continuation Indent 4 cols
-st         # Output to STDOUT
-se        # Errors to STDERR
-vt=2     # Maximal vertical tightness
-cti=0    # No extra indention for closing brackets
-pt=1     # Medium parenthesis tightness
-bt=1     # Medium brace tightness
-sbt=1    # Medium square bracket tightness
-bbt=1    # Medium block brace tightness
-nsfs     # No space before semicolons
-nolq     # Don't outdent long quoted string
-wbb="%  + - * / x != == >= <= =~ !~ < > | &  >= < = **= += *= &= <<=  &&= -= /= |= >>= ||= .= %= ^= x="  # Break before all operators

Standard VIM options

set nocompatible     " We're running Vim, not Vi!
filetype on              " Enable filetype detection
filetype indent on    " Enable filetype-specific indenting
filetype plugin on    " Enable filetype-specific plugins

set display+=lastline
set statusline=%<%f%h%m%r%=%b\ 0x%B\ \ %l,%c%V\ %P
set laststatus=2
set ruler
syntax on
set tabstop=2
set paste