/vimfiles

Primary LanguageVim Script

My VIMRC and GVIMRC files

There are many like them, but these ones are mine!

VIM - The one editor to rule them all!

Download it from here: http://www.vim.org/

HACK - a superior font for code editing

Hack is a very nice fixed width font just for coding. Download an install it first.

Configuration

  1. VIM looks in various places for the vimrc and gvimrc files. Use :version to see where.
  2. On Windows, it's worthwhile explicitely defining HOME as an Environment Variable.
  3. Navigate to your home directory (~).
  4. Create a subdirectory for your vim config files
    • \vimfiles - on Windows
    • /.vim - on Linux
  5. Clone this repo there, and all the submodules.

On windows:

$ git clone https://github.com/peverett/vimfiles vimfiles

On linux:

$ git clone https://github.com/peverett/vimfiles vimfiles

Post Install

Don't forget to create a tmp directory in the your vim folder for backups and undo files.

For example...

$ mkdir -p .vim/tmp

Plugins

I am using the VIM 8.x native package manager, and so the plugins I use are now submodules to this repo.

My package manager directories are

~/vimfiles/pack/pev/start
~/vimfiles/pack/pev/opt

To add a plugin from github (using vim-startify as an example):

cd ~/vimfiles
git submodule add https://github.com/mhinz/vim-startify.git ./pack/pev/start/vim-startify
git add .gitmodules ./pack/pev/start/vim_startify
git commit -m "Added submodule mhinz/vim-startify.git"

To update the submodule packages

cd ~/vimfiles
git submodule update --remote --merge
git commit -m "Updating submodules."

To remove a plugin

cd ~/vimfiles
git submodule deinit ./pack/pev/start/vim-startify
git rm ./pack/pev/start/vim-startify
git commit -m "Removed submodule mhinz/vim-startify.git"

When cloning to a new installation, don't forget to include the submodules.

git clone <remote-repo-url>
git submodule update --init

If you do, you can use this command

git submodule update --init --recursive

Plugins I use

For full VIM power mad crazyness install