over 3 years ago

剛剛在 google 一些有關 vim 的資料,看到的有趣的 slide
VIM: Walking Without Crutches., 由 "左右鍵" 來切換上下頁
而這個 slide 是由 Janus: Vim Distribution 看到的 ~~

NERD Tree 樹狀目錄

indentation

>> - indent
<< - outdent

THE VIM WAY

  • do it (>)
  • repeat (.)
  • reverse (u)

FINDING CHARACTERS

f{char} jumps to next occurence of {char}。 find char 向右找到 {char} 在本行的位置然後把游標移過去

THE VIM WAY

  • do it (f{char})
  • repeat (;)
  • reverse (,)

SEARCH

THE VIM WAY

  • do it (/pattern)
  • repeat (n)
  • reverse (N)

TEXT OBJECTS

define regions of text by structure

"quotes"
a" - a quoted string
i" - inner quoted string

(brackets)
ab - a block
ib - inner block

{braces}
aB - a Block
iB - inner Block

tags
at - a tag block
it - inner tag block

FITT'S LAW

the time required to rapidly move to a target area is a function of the distance to and the size of the target
移到目標上的時間(T)可以表示為目標距離(D)與目標大小(W)的函數

← vim tutorial on 2014-12-22 vim 中很讚的網站 →