Skip to content

Instantly share code, notes, and snippets.

@aaronbronow
Last active May 25, 2018 05:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronbronow/4f25eaac9e6e43df8b62 to your computer and use it in GitHub Desktop.
Save aaronbronow/4f25eaac9e6e43df8b62 to your computer and use it in GitHub Desktop.
My vimrc
execute pathogen#infect()
syntax on
filetype plugin indent on
filetype plugin on
"let g:NERDTreeDirArrows=0
let g:NERDTreeDirArrowExpandable="+"
let g:NERDTreeDirArrowCollapsible="~"
"set encoding=utf-8
" set tabs to spaces
set expandtab
set tabstop=2
set shiftwidth=2
set fillchars+=vert:\
hi VertSplit ctermbg=8 ctermfg=16 cterm=NONE
" enable solarized theme
" https://github.com/giraj/solarized-crosh
" set background=dark
" let g:solarized_termcolors=256
" colorscheme solarized
" switch windows with vim nav
map <silent> <C-h> :wincmd h<CR>
map <silent> <C-j> :wincmd j<CR>
map <silent> <C-k> :wincmd k<CR>
map <silent> <C-l> :wincmd l<CR>
" open nt when vim starts
"autocmd vimenter * NERDTree
" switch to non-nt buffer when vim starts
"autocmd VimEnter * if &filetype !=# 'gitcommit' | NERDTree | wincmd p | endif
" switch to new buffer when opening file in new tab
autocmd BufNew * wincmd l
" open nt when there is no file selected
"autocmd StdinReadPre * let s:std_in=1
"autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
" map ctl+alt+a to open nt
"map <C-S-a> :NERDTreeToggle<CR>
" close vim if the last window is nt
"autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
" ctrlp
" http://kien.github.io/ctrlp.vim
set runtimepath^=~/.vim/bundle/ctrlp.vim
let g:gist_clip_command = 'pbcopy'
let g:gist_detect_filetype = 1
let g:airline_theme='solarized'
let g:airline_solarized_bg='dark'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment