Config: .vimrc (v2)

” Plugins

” FuzzyFinder
” http://www.vim.org/scripts/script.php?script_id=1984

" FufFileRecursive
"
http://intraspirit.net/scratchpad/a-simple-fuzzyfinder-improvement/

" MatchIt for multi-character match on % (def and end)
”  REF: http://awesomeful.net/posts/57-small-collection-of-useful-vim-tricks
”  http://www.vim.org/scripts/script.php?script_id=39

” Rails.vim
” http://www.vim.org/scripts/script.php?script_id=1567

" Ali Rizvi's Vim Settings

set number
set shiftwidth=4

set incsearch
set hlsearch
set textwidth=80

” from lindes:
syntax on
hi Comment term=bold ctermfg=Cyan guifg=Cyan
set autoindent

” from benji fisher to turn on the matchit plugin automatically and more
filetype plugin on

” explicity map file extension .t to perl syntax instead of tads
” which is autodetected by filetype plugin on
” This line should always be after filetype plugin
autocmd BufNewFile,BufRead *.t set syntax=perl

” to show real tabs and spaces in file
set list
set listchars=tab:>-,trail:^,eol:$
“set listchars=tab:>-,trail:-

“to add spaces instead of tabs
set expandtab

” evil, bad! — hard tabs should be 8 chars… –lindes
” set tabstop=4
” _but_ we can use this:
set smarttab

“make the background light
set background=light

“show matching parens
set showmatch

“show row and column number
set ruler

” allow backspacing over everything in insert mode
set backspace=indent,eol,start

filetype plugin indent on

“set shiftwidth to 2 for ruby only
autocmd FileType ruby setlocal sw=2

“shortcuts inspired by http://weblog.jamisbuck.org/2008/11/17/vim-follow-up

let g:fuzzy_ignore = “*.log”
let g:fuzzy_matching_limit = 70
map fb :FufBuffer
map fd :FufDir<CR>
map ff :FufFile<CR>
” addition based on http://intraspirit.net/scratchpad/a-simple-fuzzyfinder-improvement/
map ff :FufFileRecursive<CR>
map fm :FufMruFile<CR>

silent execute '!mkdir -p ~/.vim_backups'
set backupdir=~/.vim_backups//
set directory=~/.vim_backups//

map <F2> :mksession! ~/vim_session <cr> " Quick write session with F2
map <F3> :source ~/vim_session <cr>     " And load session with F3