r
The
Command
The r command in Vim
Command
replace char
Replace — replace the character under cursor with the next typed character, then stay in Normal mode.
Examples
ra(replace with "a")3rx(replace 3 chars with "x")r<Enter>(replace with newline)
Related plugin
tpope/vim-abolish — cr{suffix} coerces word case under cursor: crs (snake_case), crc (camelCase), crm (MixedCase), cru (UPPER_CASE), cr- (dash-case).
Reference
Learn every Vim command visually — right in your browser.
Add Vim What? to Chrome — FreeAlso on Firefox.
Related commands