S
The
Command
The S command in Vim
Command
substitute line
Substitute line — delete [count] lines and enter insert mode. Shorthand for
cc.Examples
S3S(substitute 3 lines)
Related plugin
tpope/vim-surround — S{char} in Visual mode wraps the selection in the given character. e.g. select text then S" to wrap in quotes.
Reference
Learn every Vim command visually — right in your browser.
Add Vim What? to Chrome — FreeAlso on Firefox.
Related commands