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
#211 - Christopher / @Rephiscorth

10/02/2019 at 07:21PM

10
#212 - Sverre Rakkenes / @_Snap_

10/03/2019 at 11:53AM

10
#213 - Sebastian / @diasitede

10/03/2019 at 03:18PM

10
#214 - Johnson Lu / @wanderlusteee

10/03/2019 at 03:39PM

10
#215 - Ashwin Menon / @IngridMorstrad

10/03/2019 at 09:57PM

10
#216 - Iulian Alexandru / @ialexandru04

10/04/2019 at 03:54PM

10
#217 - yudera / @yudemente

10/04/2019 at 06:03PM

10
#218 - Tamás Kárándi / @tkarandi

10/06/2019 at 12:12AM

10
#219 - Lukas Turcani / @LTurcani

10/06/2019 at 11:51AM

10
#220 - Azimjon Ilkhomov / @ajilkhomov

10/06/2019 at 04:10PM

10
#221 - Guillaume Seren / @guillaumeseren

10/06/2019 at 07:09PM

10
#222 - Moje dzieje / @Moje_dzieje

10/06/2019 at 08:40PM

10
#223 - dahan / @dahan74265266

10/07/2019 at 03:52AM

10
#224 - Geert Smelt / @gasmelt

10/08/2019 at 01:11PM

10
#225 - Elizabeth / @sprinkles418

10/08/2019 at 03:52PM

10
#226 - Skywalker 666 / @MemeMasterXXI

10/09/2019 at 11:48PM

10
#227 - Aurélien Blicq / @AurelienBlicq

10/10/2019 at 10:00PM

10
#228 - rapan931 / @rapan931

10/11/2019 at 02:22AM

10
#229 - ntn / @ntn60340761

10/11/2019 at 08:34PM

10
#230 - Cillian Berragan / @cjberragan

10/11/2019 at 09:45PM

10
#231 - bluehand / @bluehan73169389

10/12/2019 at 04:17AM

10
#232 - Phu Ngo 🌐 / @PhuNgo_K

10/12/2019 at 06:30AM

10
#233 - kkscr / @kkscr1

10/12/2019 at 06:52PM

10
#234 - Matthias Wolf / @matz__e

10/12/2019 at 09:33PM

10
#235 - LeLycal.tar.gz 💾 / @Lycal3

10/13/2019 at 09:41AM

10
#236 - tuck / @19emtuck

10/13/2019 at 07:22PM

10
#237 - KlondikeBaer / @BaerKlondike

10/14/2019 at 05:31PM

10
#238 - Udalny / @Udalny1

10/14/2019 at 07:44PM

10
#239 - Mohit Gurumukhani / @mgurumuk

10/14/2019 at 09:47PM

10
#240 - Daniel Keast / @daniel_keast

10/15/2019 at 12:38PM