Skip to content

EvanQuan/qvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Vim Configurations

These are the current Vim settings I'm using.

Table of Contents

  1. Why Use This?
  2. Installation
  3. Updating
  4. Color Schemes
  5. Plugins

Why Use This?

If you're lazy and want to use what I'm using, feel free to. For anyone else, I would actually recommend configuring your own Vim from scratch or from some minimal template online.

Installation

  1. Clone this repository:
git clone https://github.com/EvanQuan/.vim ~/.vim
  1. Run pull.sh:
cd ~/.vim
bash pull.sh

Hooray, that's it!

Or you can do it all manually:

  1. Update the submodules:
cd ~/.vim
git submodule update --init --remote --recursive
  1. For Vim versions 7.4 (or late versions of 7.3) onwards, Vim automatically detects ~/.vim/vimrc as a secondary vimrc so nothing needs to be done. For earlier versions of Vim, create a dummy ~/.vimrc file in your home directory that links to ~/.vim/vimrc:
echo "source ~/.vim/vimrc" > ~/.vimrc
  1. If you are on Windows and are using gVim, clone for corresponding vimfiles and _vimrc:
git clone https://github.com/EvanQuan/.vim ~/vimfiles
echo "source ~/vimfiles/vimrc" > ~/_vimrc
cd ~/vimfiles
git submodule update --init --remote --recursive
  1. (Optional) Install powerline and powerline fonts here.

  2. If for some reason your terminal does not support italics, try this:

echo "xterm-256color|xterm with 256 colors and italic,
  sitm=\E[3m, ritm=\E[23m,
  use=xterm-256color," >> xterm-256color.terminfo.txt
tic -o ~/.terminfo xterm-256color.terminfo.txt

Settings

The vimrc file requires an external settings.vim file in order to work properly. Consider changing the values in settings.vim if there are problems with how the color scheme or lightline is rendering.

Create a settings.vim file into your ~/.vim directory by copying the template.

cp ~/.vim/version/templates/settings.vim ~/.vim/settings.vim

It will NOT be tracked by git, allowing its settings to be specific to each machine:

Updating

To update everthing, run pull.sh. If there is a new version of settings.vim your local copy will be replaced with a template of the newer version. Otherwise, your local settings will be maintained.

cd ~/.vim
bash pull.sh

Alternatively, you can manually update stuff yourself.

cd ~/.vim
git pull origin master
git submodule update --init --remote --recursive
cp ~/.vim/template_settings.vim ~/.vim/settings.vim

Color Schemes

Plugins