Switch function arguments
How to switch two arguments of a function.
Start file
function testFunction (foo, bar) {
}
End file
function testFunction (bar, foo) {
}
1c1
< function testFunction (foo, bar) {
---
> function testFunction (bar, foo) {
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock
636 remaining solutions by
signing in and submitting your own entry
#637
🎱 Josh Branchaud 🔥 / @jbrancha -
Score: 63 -
08/24/16 @ 01:02
:s<BS><BS>ffvi(:s/\w{3}, <BS><BS><BS><BS><BS><BS>(\w*\), \w<BS>(\w*\)\\2, <BS><BS><BS><BS><BS>/\2, \1/<CR>ZZ
0 comments
637 active golfers, 2019 entries
Leaderboard (lowest score wins):
06/04/2012 at 06:49PM
06/04/2012 at 09:07PM
06/05/2012 at 01:51AM
06/05/2012 at 02:53AM
06/05/2012 at 05:21AM
06/07/2012 at 01:43AM
06/07/2012 at 12:34PM
06/08/2012 at 01:10PM
06/09/2012 at 06:55AM
06/09/2012 at 01:28PM
06/11/2012 at 05:17PM
06/12/2012 at 02:20PM
06/12/2012 at 09:19PM
06/13/2012 at 06:44PM
#15 - Jacek Wysocki / @ex00
06/14/2012 at 08:48AM
06/15/2012 at 01:59PM
06/18/2012 at 05:32AM
06/18/2012 at 10:59PM
06/21/2012 at 03:55PM
06/21/2012 at 04:52PM
06/21/2012 at 05:23PM
06/22/2012 at 12:36PM
07/07/2012 at 08:09AM
07/12/2012 at 08:33PM
07/14/2012 at 02:44AM
07/19/2012 at 01:48AM
#27 - h_east (トãƒãƒƒã‚³6個) / @h_east
07/19/2012 at 10:12AM
07/29/2012 at 05:30PM
07/29/2012 at 05:34PM
07/30/2012 at 09:38PM