How do you surround a visual selection with characters?
S) with vim-surround
With the vim-surround plugin, select text visually and press S) to wrap with parentheses.
S) with vim-surround
With the vim-surround plugin, select text visually and press S) to wrap with parentheses.
gq in visual mode
Select text with v or V, then press gq to format the selection according to textwidth.
set wrap linebreak breakindent
Use wrap to wrap long lines, linebreak to break at word boundaries (not mid-word), and breakindent to preserve indentation on wrapped lines.
qaciWmyFunc(<C-r>")<Esc>q
Record a macro that changes the inner word, types the function name with opening paren, pastes the original word from the register, and closes the paren.