s
The
Command
The s command in Vim
Command
substitute char
Substitute — delete [count] characters under cursor and enter insert mode. Shorthand for
cl.Examples
s3s(substitute 3 chars)S(substitute whole line)
Related plugin
christoomey/vim-sort-motion — gs{motion} sorts lines. gsip sorts paragraph, gsi( sorts within parens.
Reference
Learn every Vim command visually — right in your browser.
Add Vim What? to Chrome — FreeAlso on Firefox.
Related commands