Last active
December 24, 2015 00:49
-
-
Save haynescw/6719030 to your computer and use it in GitHub Desktop.
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
mkdir -p .vim/autoload | |
mkdir -p .vim/backup | |
mkdir -p .vim/bundle | |
cd .vim/bundle | |
git clone git://github.com/tpope/vim-endwise.git | |
git clone git://github.com/scrooloose/nerdtree.git | |
git clone git://github.com/scrooloose/nerdcommenter.git | |
git clone git://github.com/tpope/vim-surround.git | |
cd ../.. | |
curl http://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim > ~/.vim/autoload/pathogen.vim | |
echo "set nocompatible | |
filetype off | |
call pathogen#incubate() | |
call pathogen#helptags() | |
syntax on | |
set nocompatible \"don't need to keep compatibility with Vi | |
set background=dark \"make vim use colors that look good on a dark background | |
set showcmd \"show incomplete cmds down the bottom | |
set showmode \"show current mode down the bottom | |
set incsearch \"find the next match as we type the search | |
set hlsearch \"hilight searches by default | |
set autoindent | |
set shiftwidth=2 \"number of spaces to use in each autoindent step | |
set tabstop=2 \"two tab spaces | |
set softtabstop=2 \"number of spaces to skip or insert when <BS>ing or <Tab>ing | |
set expandtab \"spaces instead of tabs for better cross-editor compatibility | |
set autoindent \"keep the indent when creating a new line | |
set smarttab \"use shiftwidth and softtabstop to insert or delete (on <BS>) blanks | |
set cindent \"recommended seting for automatic C-style indentation | |
set autoindent \"automatic indentation in non-C files | |
set cursorline | |
set cursorcolumn | |
set wildmenu \"make tab completion act more like bash | |
set wildmode=list:longest \"tab complete to longest common string, like bash | |
set mouse-=a \"disable mouse automatically entering visual mode | |
set wrap! | |
set bs=2 | |
set number | |
set hidden \"allow hiding buffers with unsaved changes | |
set cmdheight=2 \"make the command line a little taller to hide "press enter to viem more" text | |
set backupdir=$HOME/.vim/backup | |
set directory=$HOME/.vim/backup | |
let mapleader = "," \"remap leader to ',' which is much easier than '\' | |
map <Leader>d :NERDTreeToggle<CR> :set number<CR> \"make nerdtree open when you hit ,d | |
" >> .vimrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment