VIM中的编辑和移动命令

Move

  1. h/i/j/k
  2. f/F 在同一行内查找
  3. / or ? 查找整个文档
  4. gg/G 移动到文档起始/结束
  5. */# 查找当前光标下的word
  6. zt(top) zb(buttom) zz 移动当前行到屏幕顶部/底部/中间
  7. H M L (high low middle) 移动光标到屏幕顶部/中间/底部
  8. ctrl+u/d ctrl+f/b 往前/往后移动半屏 往前/往后移动一屏
  9. w(next word)/b(begin of word)/e(end of word) W/B/E word move, 大写和小写时区分单词的方式不一样。
  10. m (mark) ma 然后使用'a能够回到标记为a的地方。

Edit

  1. a/A/i/I
  2. r replace
  3. c change (by deleting, then placing you in insert mode) cw c$ ctl(changes until the next l character)
  4. d delete d5w dd d5d(delete 5 lines) d0 de d$ dtl(delete until the next l character)
  5. x/X remove under or left character.

你可能感兴趣的:(command,vim,move,edit)