AndrewRadev / switch.vim

A simple Vim plugin to switch segments of text with predefined replacements
http://www.vim.org/scripts/script.php?script_id=4172
MIT License
648 stars 30 forks source link

Add default mapping #23

Closed glittershark closed 9 years ago

glittershark commented 9 years ago

This seems like a pretty damn cool plugin - I think it could possibly be useful enough to add a default mapping like you did for splitjoin. I nominate gs, because it literally does nothing (for [n] seconds, actually).

AndrewRadev commented 9 years ago

Hmm, you're right, gs doesn't seem like a particularly useful mapping. I'm not sure if people that use both splitjoin and switch might end up mixing them up, but it's probably not a huge risk.

I'll tweet about it and see if anybody has strongs opinions on the topic, and I'll introduce the mapping in a few days.

glittershark commented 9 years ago

:+1:

AndrewRadev commented 9 years ago

Doesn't seem like there's a lot of interest in a different mapping. I've added the mapping and changed the docs. gs is now the default switch mapping. Thanks for the push :).