visual
- selectnormal
- where you can move around and modify stuffinsert
- insert textcommand
- vim's command line (hit : and type things)
A couple popular bindings are jj, ii, jk, kj
In normal mode, hit :, then type the following:
imap kj <Esc>
We'll assume that you have vim installed. If you're on OSX type $ which vim
in the command line to confirm you have the executable (you should). Some linux distros have vi, but not vim so keep an eye on that.
This is your vim config file. Check if it exists, create one if not.
$ ls ~
$ touch .vimrc
Your two main choices are pathogen and vundle. With pathogen, you'll use git to clone plugins into your (soon to be created) ~/.vim/bundle directory. With vundle, you'll put the github paths to your plugins in your .vimrc.
For convenience here is the oneliner from the pathogen readme.
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
To install plugins you clone git repositories. It's pretty cool.:
cd ~/.vim/bundle
git clone git@github.com:scrooloose/nerdtree.git
- map your keybindings
- set a colorscheme
let &t_Co256
syntax on