o to enter edit mode(i = insert, a = append, o = newline) 2. in edit mode, ESC or Ctrl+[ to enter normal mode 3. in normal mode, hit v or V to enter visual mode 4. in visual mode, hit ESC or Ctrl+[ to normal mode
the same time with horizontal split window. ✓vi -O a.rb b.rb same as above, but in vertical split window. ✓vi -p a.rb b.rb to open ﬁles with tabs. ✓vi http://www.eddie.com.tw will read the source content into vim directly.
cursor. ✓C like D, but enter insert mode. dG will clear all content after the cursor, dgg will clear all content before the cursor. ✓x remove a character. ✓. to repeat last action. ✓dd to delete whole line, 3dd to delete 3 lines. ✓u to undo, ctrl+r to redo.
ciw same as above, but enter insert mode. ✓r to replace current character. ✓J to concatenate current line with next line, 3J will concatenate next 3 lines. ✓> to add indentation, < to remove indentation.
✓ set splitright always open vertical split window in the right side. ✓ set splitbelow always open horizontal split window below. ✓ set scrolloff=5 start scrolling when n lines away from margins ✓ set showtabline=2 always show tab
ﬁletype on enable ﬁletype detection ✓ ﬁletype indent on enable ﬁletype-speciﬁc indenting ✓ ﬁletype plugin on enable ﬁletype-speciﬁc plugins ✓ syntax on syntax highlight ✓ set hlsearch search highlighting ✓ set incsearch incremental search ✓ set ignorecase ignore case when searching