Answer by David J for What is the difference between s, c and r commands in...
Descriptions s (substitute) will delete the current character and place the user in insert mode with the cursor between the two surrounding characters. 3s, for example, will delete the next three...
View ArticleAnswer by romainl for What is the difference between s, c and r commands in...
:help c :help s :help r Easy. Instead of wasting your time on that book, learn how to use Vim's awesome internal documentation: :h s :h :command :h 'option' :h function() :h ctrl-x :h i_ctrl-x :h...
View ArticleAnswer by chirlu for What is the difference between s, c and r commands in...
Assume you have foo in the document, and the cursor is on the f. Now, pressing rb will change this to boo, and you are back in command mode. Pressing sb will accomplish the same, but you are in insert...
View ArticleWhat is the difference between s, c and r commands in vi/vim?
I am trying to clarify this from the OReilly book on Vim, but the examples presented aren't clear enough. Clarification via examples/use-cases instead of direct explanation would be very helpful. The...
View ArticleAnswer by Joey for What is the difference between s, c and r commands in vi/vim?
You may try these commands in visual block mode (press <C-v> to enter), they act a little different.When you select a block of characters and then type s, it will immediately remove the block and...
View Article