Append semicolon after expressions
Some lines need the semicolon, some don't.
Start file
var foo var bar = myCoolStuff() callRemote() foo = callTheWorld()
End file
var foo; var bar = myCoolStuff(); callRemote(); foo = callTheWorld();
View Diff
1c1 < var foo --- > var foo; 3c3 < var bar = myCoolStuff() --- > var bar = myCoolStuff(); 5c5 < callRemote() --- > callRemote(); 7c7 < foo = callTheWorld() --- > foo = callTheWorld();
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 418 remaining solutions by signing in and submitting your own entry
#419 Noel Alejandro / @noelrock333 - Score: 38 - 06/23/12 @ 00:08
:4<BS>%s.<BS>/s<BS>)/x<BS>no<BS><BS>/<BS>(<BS>);/<CR>1G7la;<Esc>:w<CR><C-W>q
0 comments