Default Usage

There is lots of tutorial on the Internet.
You can google or use the $ vimtutor to learn how to use basic.
http://www.openvim.com/
http://vim-adventures.com/

Tips

Search what you select
  1. visual mode select word or sentance (v + hjklew.. and y for yank)
  2. /
  3. ^r
  4. "
    Done

text object: w,s,p,t
motions: a,i,t,f,F
command: d,c,y,v

Combine: diw, ciw etc…

查詢所有key map
vim原生:help index
查詢pluginmap:verbose map :verbose map!
:help map-listing
:help :map-verbose
:help :verbose
:help :verbose-cmd
:help map-which-keys

vimrc

The configuration of vim
Here is my vim configuration on the github.
Basic configuration: vimrc
Plugin configuration: vimrc.bundle

My vim screenshotMy vim screenshot

Vundle

Vundle is a Vim plugin manager.

Installation

1
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim

Add in .vimrc

.vimrc
1
2
3
4
5
6
7
8
9
10
set nocompatible              " be iMproved, required
filetype off " required

"set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

Plugin 'gmarik/Vundle.vim'

call vundle#end() " required

filetype plugin indent on " required

And reopen vim, try the command :BundleList to check the plugin you install now
Other command

1
2
3
4
5
6
$ BundleInstall
$ BundleSearch
$ BundleList
$ BundleUpdate
$ BundleClean
$ BundleDocs