Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 5cf62aa56c09760009d6b2f3

Add semicolons

Simply add a semicolon at the end of each line

Start file
 super.onCreate(savedInstanceState)
 setContentView
(R.layout.activity_second)
 
Intent intent = getIntent()
 
String text = intent.getStringExtra("text")

 
TextView view = findViewById(R.id.textView2)
 view
.setText(text)
End file
 super.onCreate(savedInstanceState);
 setContentView
(R.layout.activity_second);
 
Intent intent = getIntent();
 
String text = intent.getStringExtra("text");

 
TextView view = findViewById(R.id.textView2);
 view
.setText(text);

View Diff

1,4c1,4
<  super.onCreate(savedInstanceState)
<  setContentView(R.layout.activity_second)
<  Intent intent = getIntent()
<  String text = intent.getStringExtra("text")
---
>  super.onCreate(savedInstanceState);
>  setContentView(R.layout.activity_second);
>  Intent intent = getIntent();
>  String text = intent.getStringExtra("text");
6,7c6,7
<  TextView view = findViewById(R.id.textView2)
<  view.setText(text)
\ No newline at end of file
---
>  TextView view = findViewById(R.id.textView2);
>  view.setText(text);
\ No newline at end of file

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 3072 remaining solutions by signing in and submitting your own entry
Created by: @koern82

3074 active golfers, 10887 entries

Leaderboard (lowest score wins):
10
#541 - nbspAD / @AdNbsp

05/31/2020 at 12:47PM

10
#542 - Lili Boi / @lili_boi

05/31/2020 at 07:25PM

10
#543 - Israr Khan / @isrark

05/31/2020 at 08:13PM

10
#544 - Robert Roman / @rrobert422

06/01/2020 at 09:14PM

10
#545 - LCY / @Chooneh

06/06/2020 at 04:49AM

10
#546 - MA Calero / @GaleonCalero

06/07/2020 at 05:30PM

10
#547 - Rene Ribaud / @Uggla_

06/07/2020 at 09:31PM

10
#548 - Simon Wydooghe / @simonwydooghe

06/09/2020 at 08:49PM

10
#549 - Jacob Shomstein / @jshoms

06/10/2020 at 03:36AM

10
#550 - Dan / @DanSharkey88

06/12/2020 at 12:45AM

10
#551 - Alex Lucchesi / @suarigata

06/12/2020 at 05:09AM

10
#552 - Jake / @Jake88567157

06/12/2020 at 11:19AM

10
#553 - pspencil / @pspencil

06/13/2020 at 02:39PM

10
#554 - adamvimgolf / @adamvimgolf

06/13/2020 at 04:19PM

10
#555 - hansim / @hanstartup

06/15/2020 at 04:51AM

10
#556 - Sergey Averkiev / @ExAnimoso

06/16/2020 at 02:21PM

10
#557 - Super User / @WayanLW

06/17/2020 at 10:14PM

10
#558 - Ben Mayoras / @Mayorasaurus

06/18/2020 at 08:33PM

10
#559 - RaylanFox / @RaylanFox

06/19/2020 at 05:06AM

10
#560 - kcalbnodrog / @kcalbnodrog

06/19/2020 at 09:54PM

10
#561 - もりを / @morio_prog

06/20/2020 at 03:03AM

10
#562 - Matthew Diamant / @matthewdiamant

06/20/2020 at 07:51AM

10
#563 - EliTheCoder / @elithecoder

06/20/2020 at 04:39PM

10
#564 - ithirty / @ithirty4

06/22/2020 at 05:11PM

10
#565 - Karol Łukaszewicz / @Karolukaszewicz

06/23/2020 at 10:54AM

10
#566 - Tom / @Mutimbon

06/25/2020 at 05:20AM

10
#567 - Francesco De Rose / @fdierre

06/26/2020 at 08:42PM

10
#568 - mocihan / @mocihan

06/27/2020 at 03:39AM

10
#569 - Dan / @nnmnsmmr

06/27/2020 at 04:42PM

10
#570 - Ming Dai / @MingDai2

06/29/2020 at 04:50PM