Skip to content

Instantly share code, notes, and snippets.



Last active Aug 29, 2015
What would you like to do?
" setup NERDTree button
nnoremap <silent> <leader>m :NERDTreeToggle<enter>
" map ctrl+hjkl to c-w movements
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
" pathogen stuff
call pathogen#infect()
syntax enable
filetype plugin indent on
" UTF-8 encoding
set enc=utf8
set fenc=utf-8
set termencoding=utf-8
" disable old VI compatibility
set nocompatible
" smart indent
set si
" auto-indent
set ai
" tabs
set tabstop=2
set expandtab " tabs-to-spaces
set shiftwidth=2
" wrap lines at 80 chars
set textwidth=80
set colorcolumn=80
" syntax highlighting
set t_Co=256
syntax on
colorscheme Tomorrow
" line numbers
set number
" highlight matching braces
set showmatch
" intelligent comments I think
set comments=sl:/*,mb:\ *,elx:\ */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.