Setting Up Vim

Whenever moving into a new development environment, I usually follow the steps to bring my vim environment back.

1. Runtime Configurations (.vimrc)

Some good examples for newcomers may be:

2. Installing Plugins

  1. Install pathogen.vim
    pathogen.vim is the one who manages runtimepaths so that you can install other vim plugins. Once you install it by the following command:

    mkdir -p ~/.vim/autoload ~/.vim/bundle && \
    curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
    

    Make sure you have the next line in your .vimrc:

    execute pathogen#infect()
    
  2. Clone plugins into ~/.vim/bundle/
    Once pathogen.vim is set, look out for the git repositories of the famous plugins and clone them into the vim bundle directory. Here are several of the plugins that I find essential:

3. Mapping Keys

4. Setting Themes

You can set pretty themes that can colorize your vim window.

* Others

Open Comments