TAGS: Vim
  1. Vim Cheat Sheet

    This article will be continuously updated. Moving around h j k l move left up down right ONE character. 5 h move 5 characters towards left. gg jump to the first line. 5 G jump to the fifth line. Editing ~ toggle case of ONE character, or N continuous characters with motion. like 4u to change ...

  2. vim 将 tab 转换成 空格符

    平时在开发时使用空格缩进,vim 中配置了 set expandtab set tabstop=4 将一个制表符替换成 4 个空格。同时还开启了自动缩进。 但是,当比如从 Github 复制一段代码粘贴过来时,需要先 :set paste 来取消自动缩进,以方便通过 cmd + v 粘贴代码。粘贴的代码中制表符没有被替换成空格,这时候需要执行 :retab 来手动将制表符替换成空格符。 ...

  3. 我的个人 wiki 页面