(注意: 只记录工作中实际使用的命令)

删除带有pattern的所有行    :g/pattern/d

删除不带pattern的所有行   :g!/pattern/d


匹配red和blue,无次序       red.*blue\|blue.*red    (\| 代表或操作)


一个Vim的配色方案  https://github.com/altercation/vim-colors-solarized


TAB替换为空格:
:set ts=4
:set expandtab
:%retab!

相关文章:

  • 2021-08-19
  • 2022-12-23
  • 2021-11-26
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
  • 2021-08-05
猜你喜欢
  • 2021-11-22
  • 2021-09-26
  • 2021-08-11
  • 2021-12-29
  • 2021-11-04
  • 2021-12-19
  • 2022-01-30
相关资源
相似解决方案