Skip to content

Instantly share code, notes, and snippets.

@vallettea vallettea/vim.md
Last active Dec 4, 2019

Embed
What would you like to do?
Configure vim on mac

Install pathogen and use a proper directory structure

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

in ~/.vimrc

set nocompatible
" Initialisation de pathogen
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 https://github.com/scrooloose/nerdtree.git nerdtree

git clone https://github.com/moll/vim-node.git ~/.vim/bundle/node git clone https://github.com/pangloss/vim-javascript.git ~/.vim/bundle/vim-javascript

cd ~/.vim/bundle git clone https://github.com/maksimr/vim-jsbeautify.git cd vim-jsbeautify & git submodule update --init --recursive

git clone https://github.com/jelera/vim-javascript-syntax.git ~/.vim/bundle/vim-javascript-syntax

Install color scheme

cd ~/.vim/colors
wget wget https://raw.githubusercontent.com/tpope/vim-vividchalk/master/colors/vividchalk.vim

and add colorscheme vividchalk to vimrc

@ishanbakshi

This comment has been minimized.

Copy link

ishanbakshi commented May 8, 2018

Just updating because If anyone comes here and faces a similar problem.
I was stuggling with what to add in " Initialisation de pathogen ?
and this worked : "source ~/.vim/pathogen/autoload/pathogen.vim"

@dsb4k8

This comment has been minimized.

Copy link

dsb4k8 commented Aug 21, 2018

Your config worked perfectly! Thanks.

@sebavidal10

This comment has been minimized.

Copy link

sebavidal10 commented Dec 21, 2018

Excelent!!! Thaks! 😃

@omermindivanli

This comment has been minimized.

Copy link

omermindivanli commented Jan 20, 2019

Hi Everyone, i have mac as a dev environment. I can easily setup nerdtree on ubuntu. But, i have not fixed it on mac. Is there anyone can help me? I followed this documentation. By the way it is amazing. Everything has been installed there is no error or warning. but nerdtree does start :(

Now it is working thnaks everyone :)

@zobeirraisi

This comment has been minimized.

Copy link

zobeirraisi commented Aug 17, 2019

Awesome and Perfect config.
Thanks a lot

@Mozuffer

This comment has been minimized.

Copy link

Mozuffer commented Nov 6, 2019

thanks a lot, it works well

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.