Skip to content

Latest commit

 

History

History
executable file
·
105 lines (64 loc) · 1.94 KB

README.md

File metadata and controls

executable file
·
105 lines (64 loc) · 1.94 KB

There Be Wizards In Here!

My current vim setup.

Inspired by gtanner's vim config. Uses Pathogen. See Bundles.

Requirements

  • Vim
  • Git
  • NodeJS/NPM
  • Ack

Installation

 # clone the repo into a local directory of your choice (~ used in this example)
 cd ~
 git clone git://github.com/fourq/vim-settings.git
 ln -s vim-settings/.vimrc
 ln -s vim-settings/.vim
 cd vim-settings
 ./configure

Submodules

This setup uses several git repositories as submodules. The configure script sets up the submodules for you initially but you might need/want to pull the latest versions of each submodule at some point. To pull them all at once use the command below.

 # cd to install directory (~/vim-settings for this example)
 cd ~/vim-settings
 git submodule foreach git pull

Common Commands

space

Search.

jj

Escape insert mode.

\s,\S

Toggle spell check.

ctrl-p

Runs :CtrlPMixed.

ctrl-n

Runs :CtrlPBuffer.

ctrl-mm

Runs :NerdTreeToggle.

ctrl-h,j,k,l

Move around windows.

ctrl-V

Paste from clipboard.

Ack WORD

Search and display entries.

Syntastic

The configure script handles installing some packages.

However, be sure to install them:

https://github.com/scrooloose/syntastic/wiki/Syntax-Checkers

Ack Plugin

Install via: http://beyondgrep.com/install

You might also need to:

alias ack="ack-grep"

In your .bashrc.

Adding Custom Commands Per Directory

If you have a .vim.custom file in the CWD, it will be evaluated (last).

Other References