My Vimrc / .vimrc

" Load pathogen modules
call pathogen#infect()

" Enable line numbers
set number

" Enable mouse clicking
set mouse=a

" Always show the current position
set ruler

" Highlight search terms
set hlsearch

" Search as you type like in browsers
set incsearch

"Ignore case when searching
set ignorecase 

filetype plugin on
filetype indent on

" Toggle paste on/off.  With it on formatting doesn't get messed up when
" pasting from an external application
set pastetoggle=<F2>

" Turn on smart indent
set smartindent
set smarttab
set tabstop=4 " set tab character to 4 characters
set expandtab " turn tabs into whitespace
set shiftwidth=4 " indent width for autoindent
set softtabstop=4 " makes backspace go back 4 spaces
set autoindent

" Show filename always
set ls=2

" Set color scheme
set t_Co=256 " Use all 256 colors
colorscheme molokai

" Show vertical line at col 80
if exists('+colorcolumn')
    set colorcolumn=80
    au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)

" Remap CommanT from `\t` to` \`
noremap \ :CommandT<CR>

" Tab configuration shortcuts
map <leader>tn :tabnew<cr>
map <leader>te :tabedit
map <leader>tc :tabclose<cr>

" Move a line of text using ALT+[jk]
nmap <M-j> mz:m+<cr>`z
nmap <M-k> mz:m-2<cr>`z
vmap <M-j> :m'>+<cr>`<my`>mzgv`yo`z
vmap <M-k> :m'<-2<cr>`>my`<mzgv`yo`z

" Delete trailing white space, useful for Python ;)
func! DeleteTrailingWS()
    exe "normal mz"
    exe "normal `z"
autocmd BufWrite *.py :call DeleteTrailingWS()

" Use system clipboard for yank, paste, cut, etc.
set clipboard+=unnamed

" => Command-T
let g:CommandTMaxHeight = 15
set wildignore+=*.o,*.obj,.git,*.pyc
noremap <F5> :CommandTFlush<CR>

" => Sytastic
let g:syntastic_phpcs_conf = '--standard=/home/aaron/.vim/phpruleset.xml'

" => dbext
let g:dbext_default_profile_mysql_redb01 = 'type=MYSQL:user=agodfrey:passwd=xdYSJx8f^p:host=redb01:dbname=Kap'
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.