Vim常用命令案例记录

  1. Run bash(e.g. ls) in vim
    :!ls

  2. Window's movement

  • Ctrl-w + h/j/k/l move the cursor to the left, below, above, or right window respectively
  • Ctrl-w + ←/↓/↑/→ jusk like last item
  1. Compare diff of two text
    vimdiff <(echo "str1") <(echo "str2")
posted @ 2024-05-02 21:36  摩斯乱码  阅读(2)  评论(0编辑  收藏  举报