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
#421 - Strages / @Strages2k

02/22/2020 at 09:34PM

10
#422 - Owen Ki / @owen_ki_dev

02/23/2020 at 02:06AM

10
#423 - Mushan Yang / @mushanyoung

02/24/2020 at 10:33PM

10
#424 - David Hume / @djh95

02/25/2020 at 10:50PM

10
#425 - Patrick Bryan / @gadget086

02/26/2020 at 02:23AM

10
#426 - Scott Lee / @ureure

02/27/2020 at 11:46PM

10
#427 - Andre Cato / @DreBear800

02/29/2020 at 05:10PM

10
#428 - Matt Drover / @mdrover25

03/01/2020 at 02:21PM

10
#429 - countime / @countime1

03/04/2020 at 02:02AM

10
#430 - Affan / @maqur_

03/04/2020 at 02:15PM

10
#431 - エターナル雑魚 / @eternalzako

03/07/2020 at 09:59AM

10
#432 - Fernando Serboncini / @fserb

03/07/2020 at 04:00PM

10
#433 - Karissa McKelvey / @okdistribute

03/09/2020 at 10:21PM

10
#434 - Sean Dewar / @seandewar

03/12/2020 at 05:06PM

10
#435 - NoniusSenior / @NoniusS

03/12/2020 at 09:05PM

10
#436 - Tomas / @Tombakas

03/14/2020 at 01:01AM

10
#437 - Andrea / @AndreaRguezFdez

03/14/2020 at 07:42PM

10
#438 - yar / @yar01921320

03/14/2020 at 11:33PM

10
#439 - giursino / @giursino1

03/15/2020 at 12:48PM

10
#440 - Alon Sandler / @AlonSandler

03/15/2020 at 05:57PM

10
#441 - 杜撰 / @NOrUixDzwW4BbCP

03/15/2020 at 06:42PM

10
#442 - samet ぷ / @jssamet

03/16/2020 at 10:57AM

10
#443 - noredigle / @noredigle

03/17/2020 at 05:13PM

10
#444 - John Doe / @JohnDoe77150954

03/18/2020 at 10:22PM

10
#445 - vicver09 / @vicver091

03/19/2020 at 01:41AM

10
#446 - Эдуард Грозный / @kolobosha1

03/19/2020 at 10:33PM

10
#447 - NGageMegaman / @NGageMegaman

03/20/2020 at 12:22AM

10
#448 - ちゅうい / @_chuyii

03/20/2020 at 01:03PM

10
#449 - manfred knapp / @fred_pooshka

03/20/2020 at 09:23PM

10
#450 - MrSunshineBug / @MrSunshineBug

03/21/2020 at 01:41PM