How to convert all text to lowercase in Vim

前端 未结 10 1595
刺人心
刺人心 2021-01-29 18:21

How do you convert all text in Vim to lowercase? Is it even possible?

10条回答
  •  面向向阳花
    2021-01-29 18:41

    • Toggle case "HellO" to "hELLo" with g~ then a movement.
    • Uppercase "HellO" to "HELLO" with gU then a movement.
    • Lowercase "HellO" to "hello" with gu then a movement.

    For examples and more info please read this: http://vim.wikia.com/wiki/Switching_case_of_characters

提交回复
热议问题