How to convert all text to lowercase in Vim

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

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

10条回答
  •  灰色年华
    2021-01-29 18:25

    1. If you really mean small caps, then no, that is not possible – just as it isn’t possible to convert text to bold or italic in any text editor (as opposed to word processor). If you want to convert text to lowercase, create a visual block and press u (or U to convert to uppercase). Tilde (~) in command mode reverses case of the character under the cursor.

    2. If you want to see all text in Vim in small caps, you might want to look at the guifont option, or type :set guifont=* if your Vim flavour supports GUI font chooser.

提交回复
热议问题