基本的搜索:

  /pattern    向前搜索

  ?pattern   向后搜索

  n               向前重复搜索

  N               向后重复搜索

 

搜索并替换

  :%s/search_for_this/replace_with_this/    搜索所有的文本并进行替换

  :%s/search_for_this/replace_with_this/c  确认每次替换

相关文章:

  • 2021-11-21
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-11
  • 2022-12-23
  • 2021-07-10
猜你喜欢
  • 2021-11-22
  • 2021-08-13
  • 2022-12-23
  • 2021-08-08
  • 2021-12-19
  • 2021-07-10
  • 2021-09-22
相关资源
相似解决方案