My current vim setup.
Inspired by gtanner's vim config. Uses Pathogen. See Bundles.
- Vim
- Git
- NodeJS/NPM
- Ack
# 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
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
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.
The configure
script handles installing some packages.
However, be sure to install them:
https://github.com/scrooloose/syntastic/wiki/Syntax-Checkers
Install via: http://beyondgrep.com/install
You might also need to:
alias ack="ack-grep"
In your .bashrc
.
If you have a .vim.custom
file in the CWD, it will be evaluated (last).