• Home
  • About
    • longjianjiang photo

      longjianjiang

      个人博客.

    • Learn More
    • Email
    • Twitter
    • Facebook
    • Github
    • Weibo
  • Posts
    • All Posts
    • All Tags
  • Projects

Vim 速查

24 May 2019

Reading time ~1 minute

本文是笔者抛弃其他编译器使用Vim的一个过程记录,记录了自己使用Vim的过程。

shortcut

  • 移动行

1 move 2 :将第一行移动到第二行; 1, 3 move 4 : 将1-3行这个整体进行移动,最后一行移动到第四行;

  • 分屏

vsp filename : 分屏打开另一个文件; only : 保留当前页面,关闭其他页面;

  • 光标移动

ctrl + f/b : 下一页,上一页; ctrl + d/u : 下半页,上半页; H / M / L : 屏幕 顶部,中间,底部;

  • undo undo

ctrl + r

plug

Ultisnip: 方便的生成重复的一段内容,免去了复制。

NerdTree: 分屏,方便的查看文件的目录结构,快速切换到其他文件。

References

http://wsztrush.github.io/%E5%B7%A5%E5%85%B7/2015/06/10/VIM.html



Tutorial Like Tweet +1