Skip to content

Instantly share code, notes, and snippets.

@stvhwrd
Created September 9, 2016 19:13
Show Gist options
  • Save stvhwrd/99816f70519fa445676893b412db6197 to your computer and use it in GitHub Desktop.
Save stvhwrd/99816f70519fa445676893b412db6197 to your computer and use it in GitHub Desktop.
set nocompatible " disable backward compatibility with Vi
filetype plugin indent on " filetype detection ON, plugins enable, indent ON
set t_Co=256 " enable 256-color mode.
syntax enable " enable syntax highlighting, previously 'syntax on'.
set number " show line numbers
set laststatus=2 " last window always has a statusline
set nohlsearch " Don't continue to highlight searched phrases.
set incsearch " But do highlight as you type your search.
set ignorecase " Make searches case-insensitive.
set ruler " Always show info along bottom.
set autoindent " auto-indent
set tabstop=4 " tab spacing
set softtabstop=4 " unify
set shiftwidth=4 " indent/outdent by 4 columns
set shiftround " always indent/outdent to the nearest tabstop
set expandtab " use spaces instead of tabs
set smarttab " use tabs at the start of a line, spaces elsewhere
set nowrap " don't wrap text
set guifont=Inconsolata-dz\ for\ Powerline:h13 " set font, format <font name>:<font height> escape spaces
" using Vim Plug - Minimalist Vim Plugin Manager
call plug#begin('~/.vim/plugged')
" NERDTree
Plug 'scrooloose/nerdtree'
" Material color scheme for Vim
Plug 'kristijanhusak/vim-hybrid-material'
" Syntax checking for vim
Plug 'scrooloose/syntastic'
" Vim script for text filtering and alignment
Plug 'godlygeek/tabular'
" lean & mean status/tabline for vim that's light as air
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
" quoting/parenthesizing made simple
Plug 'tpope/vim-surround'
" the ultimate git helper
Plug 'tpope/vim-fugitive'
" comment/uncomment lines with gcc or gc in visual mode
Plug 'tpope/vim-commentary'
" shows a git diff in the gutter (sign column)
Plug 'airblade/vim-gitgutter'
" Search Dash.app from Vim
" Plug 'rizzatti/dash.vim'
" Add plugins to &runtimepath
call plug#end()
" end Vim Plug plugins
" enable vim-airline
let g:airline#extensions#tabline#enabled=1
" Allow some of the code to be bolded, like functions and language controls
let g:enable_bold_font = 1
" kristijanhusak's hybrid-material theme:
set background=dark
colorscheme hybrid_material
" open NERDTree on startup if no file is specified
autocmd VimEnter * if !argc() | NERDTree | endif
" place cursor in main window on startup
autocmd VimEnter * wincmd p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment