Skip to content

Instantly share code, notes, and snippets.

@nahiluhmot
Last active December 19, 2015 21:58
Show Gist options
  • Save nahiluhmot/6023905 to your computer and use it in GitHub Desktop.
Save nahiluhmot/6023905 to your computer and use it in GitHub Desktop.
" Basic things (that's programmer for "I don't quite remember what all of these do")
let mapleader=','
set nocompatible
filetype off
syntax on
set number
set ruler
set showcmd
set showmode
set hidden
set scrolloff=10
set guifont=DejaVu\ Sans\ Mono\ Bold\ 14
" Whitespace
set autoindent
set smartindent
set smarttab
set tabstop=4
set shiftwidth=4
set softtabstop=4
set linespace=2
set expandtab
" Searching
set hlsearch
set incsearch
" Completion list
set wildmode=longest,list:longest
set wildmenu
" Vundle setup and packages.
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
" Yo dawg, I heard you like Vundle...
Bundle 'gmarik/vundle'
" vim-scripts github
Bundle 'ScrollColors'
" Individual github
Bundle 'airblade/vim-gitgutter'
Bundle 'ervandew/supertab'
Bundle 'fholgado/minibufexpl.vim'
Bundle 'flazz/vim-colorschemes'
Bundle 'frerich/unicode-haskell'
Bundle 'gberenfield/sjl-slimv'
Bundle 'hrp/rainbow-parenthesis'
Bundle 'kien/ctrlp.vim'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'Lokaltog/vim-powerline'
Bundle 'scrooloose/syntastic'
Bundle 'scrooloose/nerdtree'
Bundle 'tpope/vim-rails'
Bundle 'tpope/vim-rake'
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-surround'
Bundle 'tpope/vim-markdown'
Bundle 'wikitopian/hardmode'
" Custom mappings
map <Leader>ve :e ~/.vimrc<CR>
map <Leader>cb :bdelete<CR>
map <Leader>nt :NERDTree<CR>
map f <Leader><Leader>f
map F <Leader><Leader>F
map <C-h> :bprevious<CR>
map <C-l> :bnext<CR>
map <S-k> r<CR>k$
" Because hitting escape is such a drag
imap hh <ESC>
" Powerline settings
set laststatus=2
set encoding=utf-8
if has("gui_running")
colorscheme solarized
set background=light
endif
" File specific settings
au FileType lisp set softtabstop=2 tabstop=2 shiftwidth=2
au FileType ruby set softtabstop=2 tabstop=2 shiftwidth=2
au FileType python set softtabstop=4 tabstop=4 shiftwidth=4
au FileType c set softtabstop=4 tabstop=4 shiftwidth=4
au FileType java set softtabstop=4 tabstop=4 shiftwidth=4
au FileType haskell set softtabstop=4 tabstop=4 shiftwidth=4
au FileType make set noexpandtab
au BufEnter *.hs call PareditInitBuffer()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment