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
626 remaining solutions by
signing in and submitting your own entry
#627
🎱 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
627 active golfers, 1982 entries
Leaderboard (lowest score wins):
08/02/2016 at 06:11AM
09/01/2016 at 04:55AM
12/22/2016 at 01:44PM
04/01/2017 at 06:20PM
06/05/2017 at 05:17PM
06/09/2017 at 04:39PM
02/01/2018 at 12:54PM
03/27/2018 at 02:53PM
05/06/2018 at 09:10AM
08/07/2018 at 06:00PM
06/06/2019 at 01:07PM
12/22/2019 at 04:59PM
01/29/2020 at 01:09AM
06/04/2012 at 07:53PM
06/04/2012 at 10:53PM
06/05/2012 at 09:17AM
06/06/2012 at 06:54PM
06/08/2012 at 12:44PM
06/13/2012 at 06:15PM
06/15/2012 at 01:25AM
06/15/2012 at 08:50AM
06/22/2012 at 06:12PM
07/02/2012 at 09:57PM
07/04/2012 at 06:13PM
07/13/2012 at 07:38AM
07/22/2012 at 06:18AM
07/25/2012 at 06:36PM
08/04/2012 at 09:38AM
08/05/2012 at 02:41AM
08/10/2012 at 07:19PM