I intend to surround
my visual selection, same as sublime and other editors.
Since I already have surround
plugin installed, therefore viwS"
does surrounds the selected word with "
and similarly for '
, etc
Therefore following is my attempt :
vnoremap ' S'
vnoremap " S"
vnoremap [ S[
vnoremap { S{
vnoremap ( S(
But mysteriously it deletes the entire line and inserts the quote
when I try using them.
Where am I going wrong ? How to correct it ?
S
will clear the whole line and enter insert mode – yakiangviwS"
. How can I fix it ? – Yugal Jindle