Skip to content

Instantly share code, notes, and snippets.

@dmann
Last active January 25, 2018 16:02
Show Gist options
  • Save dmann/f13ab12b9862ee5978d4814a23100576 to your computer and use it in GitHub Desktop.
Save dmann/f13ab12b9862ee5978d4814a23100576 to your computer and use it in GitHub Desktop.
vim setup
execute pathogen#infect()
syntax on
filetype plugin indent on
" Tabs/spaces
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
" Colors
set background=light
:color default
" NERD Tree
map <C-o> :NERDTreeToggle<cr>
let NERDTreeIgnore=['\~$', '.*\.pyc$', 'pip-log\.txt$']
let NERDTreeWinSize=40
" Easy buffer navigation
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
map <leader>w <C-w>v<C-w>l
mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
git clone git://github.com/tpope/vim-sensible.git ~/.vim/bundle/vim-sensible
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment