Saari Development

Ali Rizvi's Technical Blog as a Professional Software Development Engineer

Config: .vimrc (v2)

leave a comment »

” Plugins

” FuzzyFinder

" FufFileRecursive

" MatchIt for multi-character match on % (def and end)
”  REF:

” Rails.vim

" 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

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
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

Written by imsaar

February 6, 2010 at 10:19 pm

Posted in configuration, editor, vim

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: