Skip to content

Instantly share code, notes, and snippets.

@ishanbakshi ishanbakshi/ forked from vallettea/
Last active May 8, 2018

What would you like to do?
Configure vim on mac

Install pathogen and use a proper directory structure

mkdir -p .vim/{autoload,colors,syntax,plugin,spell,config}
mv .vimrc .vim/vimrc
ln -s .vim/vimrc .vimrc
cd ~/.vim
git clone pathogen
cd autoload
ln -s ../pathogen/autoload/pathogen.vim .

in ~/.vimrc

set nocompatible
"source ~/.vim/pathogen/autoload/pathogen.vim"
call pathogen#infect()
call pathogen#helptags()

set number

filetype plugin indent on
syntax on
runtime! config/**/*.vim

Install nerdtree:

cd ~/.vim
mkdir -p bundle
cd bundle
git clone nerdtree
git clone ~/.vim/bundle/node
git clone ~/.vim/bundle/vim-javascript
cd ~/.vim/bundle
git clone
cd vim-jsbeautify & git submodule update --init --recursive
git clone ~/.vim/bundle/vim-javascript-syntax

Install color scheme

cd ~/.vim/colors
wget wget

and add colorscheme vividchalk to vimrc

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.