Skip to content

Instantly share code, notes, and snippets.

@markprovan
Created April 26, 2013 02:18
Show Gist options
  • Save markprovan/5464701 to your computer and use it in GitHub Desktop.
Save markprovan/5464701 to your computer and use it in GitHub Desktop.
filetype off
filetype plugin indent on
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'mattn/webapi-vim'
Bundle 'mattn/gist-vim'
Bundle 'vim-ruby/vim-ruby'
Bundle 'tpope/vim-rails'
Bundle 'msanders/snipmate.vim'
Bundle 'Townk/vim-autoclose'
set nocompatible
set modelines=0
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set t_Co=256
set number
colorscheme tomorrow-night
syntax on
set encoding=utf-8
set scrolloff=3
set autoindent
set showmode
set showcmd
set hidden
set wildmenu
set wildmode=list:longest
set visualbell
set ttyfast
set backspace=indent,eol,start
set laststatus=2
let mapleader = ","
set wrap
set textwidth=79
set formatoptions=qrn1
set ignorecase
set smartcase
set gdefault
set incsearch
set showmatch
set hlsearch
nnoremap <leader><space> :noh<cr>
nnoremap <tab> %
vnoremap <tab> %
function! NumberToggle()
if(&relativenumber == 1)
set number
else
set relativenumber
endif
endfunc
set shell=/bin/bash\ -i
map <Leader>n :call NumberToggle()<cr>
map <Leader>g :Gist<cr>
nmap <silent> <A-Up> :wincmd k<CR>
nmap <silent> <A-Down> :wincmd j<CR>
nmap <silent> <A-Left> :wincmd h<CR>
nmap <silent> <A-Right> :wincmd l<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment