Skip to content

Latest commit

 

History

History
143 lines (121 loc) · 6.58 KB

README.md

File metadata and controls

143 lines (121 loc) · 6.58 KB

Setup Your Vim

This repo is used to initialize my vim environment.

Plugins I used can be found in script file PluginList.sh

Prerequisite

Packages ~
git used to download plugins
python-dev some plugins need python
python3-dev some plugins need python
libboost-all-dev used by YouCompleteMe
clang-format used by YouCompleteMe
cmake used by YouCompleteMe
clang used by YouCompleteMe
boost used by YouCompleteMe
llvm used by YouCompleteMe
mono-xbuild mono-dmcs if you want to YouCompleteMe support C#
node nodejs-legacy npm
astyle used by vim-autoformat
tidy used by vim-autoformat
openssh-client
vim-nox used by vim-preview (ruby support)
ruby, ruby-dev used by vim-preview (ruby support)
gem used by vim-preview (ruby support)
redcarpet used by vim-preview (ruby support)
python package
autopep8
yapf
nodejs package
js-beautify
remark

Setup git

git config --global user.name "<your name>"
git config --global user.email "<your email>"

Install

Use Vundle

Used to initialize file ~/.vimrc and ~/.vim/ directory

$> ./UpdateVimrc.sh # Under linux

This will automatically install vundle and install all the plugins list in PluginList.sh

If you want to generate Vimrc for windows usage

$> ./UpdateVimrc.sh ForWindows

You need to manually initilaize the vundle

This file is used by UpdateVimrc.sh

$ ./PluginList.sh -h
Usage :  ./PluginList.sh [options] [--]

    Options:
    -h|help       Display this message
    -w|windows    Plugin list used in Windows
    -l|linux	  Plugin list used in linux
    -c|config	  config file list in repo's vimrc directory
    -v|version    Display script version"

Don't use Vundle (Need to setup ssh for github)

In this mode, I just merge all plugin files in to ~/.vim/. I first save each plugin in a seperate git remote, then merge them all into master branch.

$> make install # make sure no error occurs
$> make vimrc # then edit ~/.vimrc and do some personal config

Included Plugins

TODO: list an essential set of plugins I need.

- - - -
VOoM vimwiki
auto-pairs vim-markdown
vim-preview Markdown preview?
authorinfo
vim-surround nerdtree
vim-javascript vim-closetag
bufkill.vim tagbar
webapi-vim gist-vim
vim-table-mode tabular
vim-jsbeautify nerdcommenter Used to comment code
vim-latex-suite YouCompleteMe Used for code completion
YCM-Generator ultisnips
vim-snippets neosnippet-snippets
vim-autoformat vim-coffee-script
vim-stylus vim-vue
scss-syntax.vim vCoolor.vim
vim-jade vim-css-color