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 @   摩斯乱码  阅读(8)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】
点击右上角即可分享
微信分享提示