4 ms·
I have a repeating memory of using R in C-v context, but can’t think of an example. Vim is really reflective. I suspect r doesn’t work in block visuals, which I
by wruza 2y ago
I have a repeating memory of using R in C-v context, but can’t think of an example. Vim is really reflective. I suspect r doesn’t work in block visuals, which I use often. Need to test.
Nonetheless, normal R is a useful function for editing tables and other ascii art-y texts. How can you not need it?
For non-vimers who haven’t read tfa: R turns on overwrite mode akin to pressing Ins in command line. r uses temporary replace mode for a single character. Rtext<Esc> replaces four chars, rt replaces current char to t. In both cases we start and end in normal mode.
- from-nibly 2y agoMy brain is slower than my fingers so my edits are never that surgical. If I goofed a few letters in a word I just ciw and retype the whole thing. I never use insert mode when bot using vim either. My fingers just aren't capable of typing individual letters at any useful speed. They always want to type whole words.
- aodonnell2536 2y agoBeen awhile since I’ve accidentally pressed r during visual-block editing but vim will gladly replace every cell under your selection with whatever character you choose after hitting r