rxdu / vim_config

Configurations and plugins for Vim.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim_config

Configurations and plugins for Vim.

1. Setup Vim

Using git to track dotfiles

$ mv .vimrc ~/.vim/vimrc
$ ln -s ~/.vim/vimrc ~/.vimrc
$ cd ~/.vim
$ git init
$ git add .
$ git commit -m "Initial commit"

Install configurations on a new machine

  • Linux
$ cd ~
$ git clone https://github.com/rxdu/vim_config.git ~/.vim
$ ln -s ~/.vim/vimrc ~/.vimrc
$ cd ~/.vim
$ git submodule update --init --recursive
  • MacOS
$ sudo port install vim +python27 +huge

#Add an alias in the ~/.bash_profile
alias vim='/opt/local/bin/vim'

Additional setups

  • Colorscheme

Add the following variable to .bashrc to show color correctly.

export TERM=xterm-256color

Plugin dependencies

ctags: required by Gutentags, TagBar

  • Linux
$ sudo apt-get install exuberant-ctags
  • MacOS
$ brew install ctags-exuberant

2. Manage plugins

See PLUGIN

3. Using vim

See CHEATSHEET

4. Plugins installed

5. Candidnate plugins

Reference:

Configuration

Plugin documentation

Resource

About

Configurations and plugins for Vim.


Languages

Language:Vim Script 100.0%