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):
73
#3061 - 박선우 / @psw261

01/27/2020 at 07:21AM

75
#3062 - ClownJeff / @Cl0wn_Jeff

10/07/2019 at 05:38AM

77
#3063 - Muhao / @muhao0318

09/13/2019 at 09:42AM

80
#3064 - Duy Linh / @DuyLinh12080656

04/24/2020 at 02:53AM

84
#3065 - Fx Béligat / @FxBeligat

05/05/2021 at 02:56PM

90
#3066 - Anil Narayan / @AnilNarayan2013

07/09/2020 at 05:33AM

94
#3067 - Novachristmas / @Novacanoo

02/11/2020 at 06:54AM

112
#3068 - Mayank Padshala / @MayankPadshala

07/22/2019 at 04:30PM

118
#3069 - Mete yağcı / @metey17

06/13/2020 at 08:39PM

127
#3070 - e / @thestudygoddess

11/16/2020 at 05:54AM

147
#3071 - Maximiliano Greco / @mmngreco

11/09/2019 at 08:38PM

175
#3072 - Mannuel Ferreira / @manidf

05/07/2020 at 04:29AM

183
#3073 - @-----{} / @DavidAr99288709

09/05/2019 at 02:04PM

183
#3074 - nickGPT / @nickandbro

08/24/2024 at 03:39PM