Skip to content

Instantly share code, notes, and snippets.

@connorbode
Created February 24, 2016 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save connorbode/1c182c8230507908673a to your computer and use it in GitHub Desktop.
Save connorbode/1c182c8230507908673a to your computer and use it in GitHub Desktop.
VIMRC
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()
Plugin 'VundleVim/Vundle.vim'
Plugin 'https://github.com/fatih/vim-go'
Plugin 'https://github.com/scrooloose/nerdtree'
Plugin 'flazz/vim-colorschemes'
Plugin 'https://github.com/severin-lemaignan/vim-minimap'
Plugin 'https://github.com/kien/ctrlp.vim'
Plugin 'https://github.com/mustache/vim-mustache-handlebars'
Plugin 'othree/html5.vim'
Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'
call vundle#end()
filetype plugin indent on
" Navigation
set mouse=a
set nu
set wildmenu
set autoindent
set backspace=indent,eol,start
" tabbbs
set expandtab
set tabstop=2
set shiftwidth=2
" Syntax
syntax on
colorscheme Monokai
" Open nerd tree if no file was specified
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
" map shortcut to nerdtree
map <C-n> :NERDTreeToggle<CR>
" allow arrow usage in nerdtree
let g:NERDTreeDirArrows = 1
let g:NERDTreeDirArrowExpandable = '▸'
let g:NERDTreeDirArrowCollapsible = '▾'
" starting directory for ctrlp
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
let g:ctrlp_working_path_mode = 'c'
" sudo write command
command W w !sudo tee % > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment