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
#481 - Sabin maharjan / @Sabinma86681681

04/19/2020 at 08:01AM

10
#482 - David / @imdavidhwang

04/19/2020 at 11:44PM

10
#483 - sherman / @sherman37029653

04/21/2020 at 02:35AM

10
#484 - António Almeida / @tonydapinta

04/23/2020 at 02:23PM

10
#485 - Martin Stickley / @ChromaticRanger

04/23/2020 at 03:07PM

10
#486 - Cristian Cazacu / @kryshac

04/23/2020 at 08:51PM

10
#487 - Victor / @victor_rma

04/24/2020 at 02:50AM

10
#488 - Sylvain Leroux / Yes, I Know IT ! / @Yes_I_Know_IT

04/27/2020 at 09:30PM

10
#489 - lofoneax / @lofoneax

04/28/2020 at 10:15PM

10
#490 - Arthur Goodman / @ArthurGoodman3

04/29/2020 at 02:39PM

10
#491 - Julien Lerouge / @rackamx

04/30/2020 at 10:42PM

10
#492 - Sherab Giovannini / @shaddycls

04/30/2020 at 11:40PM

10
#493 - man1ac / @maniac_en

05/01/2020 at 10:01AM

10
#494 - Samuel Vaiter / @vaiter

05/05/2020 at 12:28PM

10
#495 - MPDR / @MPDR200011

05/05/2020 at 02:17PM

10
#496 - Slava Gachkaylo / @slavyan

05/05/2020 at 04:30PM

10
#497 - Pawel Wenda / @pwlwnd

05/05/2020 at 09:51PM

10
#498 - haipeng li / @HaipengLie

05/07/2020 at 03:36AM

10
#499 - PK / @pkeugine

05/07/2020 at 07:36AM

10
#500 - Anay Karnik / @anay_karnik

05/07/2020 at 03:38PM

10
#501 - Frederik F. / @FrederikZen96

05/07/2020 at 04:30PM

10
#502 - Iliyapichugin / @iliyapichugin

05/07/2020 at 09:41PM

10
#503 - Fabian Ahbeck / @FAhbeck

05/08/2020 at 11:13PM

10
#504 - Essiane Abel / @essianeabel

05/09/2020 at 11:51AM

10
#505 - StormTheWyvern / @Dragon77Scaly

05/09/2020 at 01:00PM

10
#506 - Shubham Tatvamasi / @shubhctl

05/10/2020 at 06:54AM

10
#507 - Андриянов Роман / @angeldeath29

05/10/2020 at 03:01PM

10
#508 - Bram V / @BramV44

05/10/2020 at 08:05PM

10
#509 - Matt DB / @MattDB12

05/11/2020 at 07:34PM

10
#510 - Jeff Cui / @jeffacce

05/12/2020 at 01:26PM