Skip to content

Instantly share code, notes, and snippets.

@Pavel-Durov
Created August 28, 2018 10:13
Show Gist options
  • Save Pavel-Durov/1e5ead1574dd343824982b2ab77c0957 to your computer and use it in GitHub Desktop.
Save Pavel-Durov/1e5ead1574dd343824982b2ab77c0957 to your computer and use it in GitHub Desktop.
set noeol
## 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
" pathogen
call pathogen#infect()
call pathogen#helptags()
set number
filetype plugin indent on
syntax on
runtime! config/**/*.vim
```
## Nerdtree:
```
cd ~/.vim
mkdir -p bundle
cd bundle
git clone https://github.com/scrooloose/nerdtree.git nerdtree
```
" node & js
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
### Color theme
```
cd ~/.vim/colors
wget wget https://raw.githubusercontent.com/tpope/vim-vividchalk/master/colors/vividchalk.vim
```
and add `colorscheme vividchalk` to vimrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment