Skip to content

Instantly share code, notes, and snippets.

@dgonzalez
Created February 14, 2015 16:33
Show Gist options
  • Save dgonzalez/37e97c4a4e91f6b2915f to your computer and use it in GitHub Desktop.
Save dgonzalez/37e97c4a4e91f6b2915f to your computer and use it in GitHub Desktop.
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'git@github.com:scrooloose/nerdtree.git'
Plugin 'git@github.com:kien/ctrlp.vim.git'
Plugin 'git@github.com:modess/vim-phpcolors.git'
Plugin 'git@github.com:tpope/vim-fugitive.git'
Plugin 'git@github.com:fatih/vim-go.git'
call vundle#end() " required
filetype plugin indent on " required
if has("gui_macvim")
" Press Ctrl-Tab to switch between open tabs (like browser tabs) to
" the right side. Ctrl-Shift-Tab goes the other way.
noremap <C-Tab> :tabnext<CR>
noremap <C-S-Tab> :tabprev<CR>
" Switch to specific tab numbers with Command-number
noremap <D-1> :tabn 1<CR>
noremap <D-2> :tabn 2<CR>
noremap <D-3> :tabn 3<CR>
noremap <D-4> :tabn 4<CR>
noremap <D-5> :tabn 5<CR>
noremap <D-6> :tabn 6<CR>
noremap <D-7> :tabn 7<CR>
noremap <D-8> :tabn 8<CR>
noremap <D-9> :tabn 9<CR>
" Command-0 goes to the last tab
noremap <D-0> :tablast<CR>
endif
let mapleader=","
map <C-t> :NERDTreeToggle<CR>
set tabstop=4
set shiftwidth=4
set expandtab
set number
color darkblue
set guifont=Menlo:h12.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment