Skip to content

Instantly share code, notes, and snippets.

@rahims
Created January 13, 2012 01:49
Show Gist options
  • Save rahims/1604206 to your computer and use it in GitHub Desktop.
Save rahims/1604206 to your computer and use it in GitHub Desktop.
My .vimrc file.
set encoding=utf-8
set nobackup
set noswapfile
set nocompatible
set autoindent
set showcmd
set visualbell
set ignorecase
set smartcase
set ruler
set incsearch
set hidden
set showmatch
set smarttab
set backspace=start,indent,eol
set history=1000
set wildmenu
set wildignore=*.bak,*swp
set wildmode=list:longest
set showmatch " show matching brackets
set tabstop=4
set shiftwidth=4
set cursorline
set background=dark
imap kj <Esc>
syntax on
filetype off " required for Vundle
filetype plugin on " required for Vundle
filetype indent on " required for Vundle
colorscheme wombat
set guifont=Menlo\ for\ Powerline:h12
set scrolloff=10 " scroll before reaching the edge of the page
let mapleader=","
" Clean up whitespace
nnoremap <leader>W :%s/\s\+$//<cr>:let @/=''<CR>
" Fold HTML tags
nnoremap <leader>ft Vatzf
au BufNewFile,BufRead *.md set filetype=markdown
autocmd FileType make set noexpandtab
autocmd FileType python set expandtab|set softtabstop=4
" Hide MacVim toolbar
if has("gui_running")
set guioptions-=T
set transparency=3
endif
" Vundle Stuff
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'git://git.wincent.com/command-t.git'
Bundle 'Lokaltog/vim-powerline'
" Powerline
let g:Powerline_symbols = 'fancy'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment