vimtricks.wiki Concise Vim tricks, one at a time.

How do I convert selected text to lowercase in visual mode?

Answer

u (in visual mode)

Explanation

In visual mode, pressing u converts all selected text to lowercase. Combined with U for uppercase and ~ for toggle, this gives complete case control.

How it works

  • Select text with any visual mode
  • Press u to convert all selected characters to lowercase
  • The selection is deselected after conversion

Example

HELLO WORLD

Select with V, press u:

hello world

Tips

  • U converts to uppercase in visual mode
  • ~ toggles case in visual mode
  • This is useful for fixing accidentally typed uppercase text
  • Works with block selections for column-specific case changes

Next

How do you yank a single word into a named register?