1

I would like to map "" to ysiw" from surround.vim to reduce number of keystrokes needed to surround a word with double quotes.

I have tried :noremap "" ysiw", however it does not work. Any ideas what could I try?

1 Answer 1

2

Use regular map for a normal mode nmap:

nmap "" ysiw"

noremap is for several modes and it uses default meaning of the commands you provide on the right side, nore means "no remap".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.