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
#361 - jyuxian / @jyuxian

01/04/2020 at 04:21AM

10
#362 - James Hessin / @JamesHessin

01/05/2020 at 11:21PM

10
#363 - Tyler Culdler / @culdler

01/07/2020 at 12:57PM

10
#364 - Bashar Jaan Khan / @basharjaankhan

01/07/2020 at 01:08PM

10
#365 - lev / @nouvelliu

01/07/2020 at 02:20PM

10
#366 - David Guevara / @LordCraftzDz

01/11/2020 at 12:40AM

10
#367 - mowglian / @mowglian

01/11/2020 at 12:26PM

10
#368 - Stefan Bjarnason / @stefanttb

01/11/2020 at 05:32PM

10
#369 - I / @isxln

01/14/2020 at 03:36AM

10
#370 - Karnival K / @K4rnival

01/14/2020 at 08:42AM

10
#371 - 밤색 / @aeisura

01/14/2020 at 09:18AM

10
#372 - Jakub Troszok / @zosoooo

01/17/2020 at 11:51AM

10
#373 - Julien IsCool / @IscoolJulien

01/17/2020 at 04:07PM

10
#374 - John / @Guyer250

01/17/2020 at 11:38PM

10
#375 - Gero Zimmer / @gerozimmer

01/18/2020 at 04:55PM

10
#376 - Flowepmed S. Sirch / @iluvfugu

01/19/2020 at 01:20AM

10
#377 - 🦉 / @die_4001

01/20/2020 at 08:47PM

10
#378 - Kyle X. Clark / @KyXr_Clark

01/21/2020 at 12:38AM

10
#379 - く / @noblack_nolife

01/21/2020 at 06:23AM

10
#380 - Rune Warhuus / @DinkDonkNorway

01/21/2020 at 08:13AM

10
#381 - Michael Meixner / @meixner62

01/21/2020 at 11:15AM

10
#382 - Jiří Szkandera / @JiriSzkandera

01/21/2020 at 08:35PM

10
#383 - たかを / @mzntaka0

01/22/2020 at 12:51PM

10
#384 - li / @li94938987

01/23/2020 at 05:51PM

10
#385 - Andre / @5starsmug

01/24/2020 at 11:37AM

10
#386 - Vladimir / @pmmepatchcables

01/24/2020 at 02:50PM

10
#387 - John Smith / @JohnSmith448816

01/25/2020 at 11:06PM

10
#388 - Lukas Klingberg / @ElKlingberg

01/26/2020 at 04:19PM

10
#389 - yhetsugiHMC / @yhetsugi

01/27/2020 at 01:35AM

10
#390 - Quentin Plazar / @QuentinPlazar

01/27/2020 at 07:28AM