Last active
November 14, 2016 17:31
-
-
Save djensen47/8076960 to your computer and use it in GitHub Desktop.
vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plugin 'gmarik/Vundle.vim' | |
" The following are examples of different formats supported. | |
" Keep Plugin commands between vundle#begin/end. | |
" plugin on GitHub repo | |
" Markdown syntax highlighting | |
Plugin 'godlygeek/tabular' | |
Plugin 'plasticboy/vim-markdown' | |
let g:vim_markdown_folding_disabled = 1 | |
" gitgutter: shows git diff in the margin | |
Plugin 'airblade/vim-gitgutter' | |
" fugitive: git vim wrapper | |
Plugin 'tpope/vim-fugitive' | |
" coffee-script: syntax highlighting for CoffeeScript | |
Plugin 'kchmck/vim-coffee-script' | |
" jade syntax | |
Plugin 'digitaltoad/vim-jade' | |
" javascript-syntax: syntax highlighting for JavaScript | |
"Plugin 'jelera/vim-javascript-syntax' | |
Plugin 'pangloss/vim-javascript' | |
" jsx syntax highlighting | |
Plugin 'mxw/vim-jsx' | |
" json syntax | |
Plugin 'elzr/vim-json' | |
let g:vim_json_syntax_conceal = 0 | |
" handlebars and mustache syntax | |
Plugin 'mustache/vim-mustache-handlebars' | |
" less syntax | |
Plugin 'groenewege/vim-less' | |
" NerdTree | |
Plugin 'scrooloose/nerdtree' | |
" codeschool | |
Plugin 'antlypls/vim-colors-codeschool' | |
" solarized colors | |
Plugin 'altercation/vim-colors-solarized' | |
" tomorrow theme colors | |
Plugin 'chriskempson/vim-tomorrow-theme' | |
" cobalt theme | |
Plugin 'dterei/VimCobaltColourScheme' | |
" cobalt2 theme | |
Plugin 'herrbischoff/cobalt2.vim' | |
" Plugin 'gertjanreynaert/cobalt2-vim-theme' | |
" gruvbox theme | |
Plugin 'morhetz/gruvbox' | |
" airline for the StatusLine | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" Allow saving of files as sudo when I forgot to start vim using sudo. | |
cmap w!! w !sudo tee > /dev/null % | |
" set 256 colors | |
set t_Co=256 | |
syntax on | |
set autoindent | |
set noexpandtab | |
set copyindent | |
set number | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set ttymouse=xterm2 | |
set backspace=indent,eol,start | |
if has("mouse") | |
set mouse=a | |
endif | |
" set background to dark | |
set background=dark | |
" solarized options | |
let g:solarized_visibility = "high" | |
let g:solarized_contrast = "high" | |
let g:solarized_termcolors = 256 | |
" Change settings for various UI vim clients | |
if has("gui_running") | |
" change the solarized options | |
let g:solarized_visibility = "normal" | |
if has("gui_gtk2") | |
set guifont=Inconsolata\ 12 | |
elseif has("gui_macvim") | |
" set gfn=Source\ Code\ Pro:h12 | |
set gfn=Sauce\ Code\ Powerline:h12 | |
let g:airline_powerline_fonts = 1 | |
elseif has("gui_win32") | |
" set guifont=Consolas:h11:cANSI | |
set encoding=utf8 | |
let g:airline_powerline_fonts = 1 | |
set gfn=Sauce\ Code\ Powerline:h9 | |
endif | |
endif | |
" Turn off error bells | |
set visualbell | |
set t_vb= | |
set guioptions-=T " Remove toolbar | |
set guioptions-=r " remove right scrollbar | |
set guioptions-=L " remove left scrollbar | |
" Add toolbar | |
" set guioptions+=T | |
" colorscheme | |
colorscheme cobalt2 | |
" NERDTree executable file highlight is annoying, fix it | |
highlight link NERDTreeExecFile Normal | |
" clear the git-gutter column background | |
highlight clear SignColumn | |
highlight GitGutterAdd ctermfg=green guifg=green | |
highlight GitGutterChange ctermfg=yellow guifg=darkyellow | |
highlight GitGutterDelete ctermfg=red guifg=red | |
highlight GitGutterChangeDelete ctermfg=yellow guifg=darkyellow | |
" Macros | |
" Create a comment block | |
map ,co A<CR><CR><CR><Esc>kkA/*<Esc>30A-<Esc>A*<Esc>0jA \| Comments<Esc>21A <Esc>A\|<Esc>0jA *<Esc>30A-<Esc>A*/<Esc> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment