How to convert all text to lowercase in Vim

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

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

10条回答
  •  醉话见心
    2021-01-29 18:29

    use this command mode option

    ggguG
    
    
    gg - Goto the first line 
    g  - start to converting from current line    
    u  - Convert into lower case for all characters
    G  - To end of the file.
    

提交回复
热议问题