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
#331 - Siddhartha [not giving away free coins] / @siddhartha_cryp

12/12/2019 at 04:45AM

10
#332 - Duggan / @CallMeDuggan

12/12/2019 at 04:54AM

10
#333 - 坪井和成 / @dadasutasudadas

12/13/2019 at 08:06AM

10
#334 - kashikasitaro / @kashikasitaro

12/14/2019 at 12:42PM

10
#335 - Vasily / @wolvschool

12/14/2019 at 07:58PM

10
#336 - Akira Sasaki / @hikomimo

12/15/2019 at 03:48PM

10
#337 - Daniel Kukuła / @dkuku

12/15/2019 at 03:48PM

10
#338 - Shanmukh chaitanya / @Shanmukhchaita1

12/16/2019 at 07:09AM

10
#339 - Sebastian Motraghi / @seb_m

12/17/2019 at 06:07PM

10
#340 - Nick Francke / @GoldHorizon

12/18/2019 at 11:40AM

10
#341 - l4cr0ss / @l4cr0ss

12/18/2019 at 11:22PM

10
#342 - 新 / @kuropp_

12/19/2019 at 02:23AM

10
#343 - Sando Itchi / @sando_itchi

12/20/2019 at 02:54AM

10
#344 - J / @JellyTheWobbly

12/20/2019 at 06:49AM

10
#345 - no / @no82797391

12/21/2019 at 12:54AM

10
#346 - どい / @wai_doi

12/21/2019 at 06:36AM

10
#347 - hsxyl / @hsxyl2

12/21/2019 at 09:39AM

10
#348 - Delon / @delonleonard

12/22/2019 at 12:38AM

10
#349 - Simon Bucher / @SimonBucher10

12/22/2019 at 05:55PM

10
#350 - Nate / @natedoran

12/23/2019 at 04:42AM

10
#351 - Sujay Vadlakonda / @SujayVadlakonda

12/24/2019 at 04:30PM

10
#352 - rirze / @SourabhWasTaken

12/24/2019 at 07:53PM

10
#353 - zqi / @zq11110320

12/26/2019 at 08:24AM

10
#354 - x94ru / @x94ru

12/26/2019 at 11:59AM

10
#355 - Francesco Minnocci / @fminnocci

12/26/2019 at 10:18PM

10
#356 - 임덕윤 / @SnLHUF5ZYJXqI1m

12/28/2019 at 07:02AM

10
#357 - F. Nord / @rettetdieborg

12/29/2019 at 04:34PM

10
#358 - Petr Klimenko / @Petka17

12/30/2019 at 06:53PM

10
#359 - Larry McClenon / @uptotheroof

12/31/2019 at 04:29PM

10
#360 - whale / @Hari84444713

01/03/2020 at 01:23AM