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
#241 - iphelf / @charon_leo

10/15/2019 at 02:34PM

10
#242 - aᵣᵤhᵢ / @aruhi_

10/15/2019 at 04:02PM

10
#243 - Aurélien / @saryon

10/15/2019 at 04:26PM

10
#244 - Jonas Marcus / @JonasMarcus1

10/16/2019 at 06:32PM

10
#245 - leo / @leo28356948

10/17/2019 at 02:13AM

10
#246 - Homo Ludens / @BsMainly

10/17/2019 at 01:59PM

10
#247 - @soller@fosstodon.org / @jeremy_soller

10/17/2019 at 10:33PM

10
#248 - artgur / @artgur

10/18/2019 at 12:36AM

10
#249 - Lawrence Gray / @LawrenceGray23

10/19/2019 at 08:48AM

10
#250 - John Sumner / @rjsumner

10/19/2019 at 12:45PM

10
#251 - 李华楠 / @LeeOhanan

10/19/2019 at 01:21PM

10
#252 - harmony_krieg / @harmony_krieg

10/19/2019 at 08:50PM

10
#253 - Quentin Fox / @quentinbfox_

10/20/2019 at 05:53AM

10
#254 - Renan Cidale / @rnescalz

10/20/2019 at 07:04AM

10
#255 - Yāsky / @Yaasky

10/21/2019 at 05:15PM

10
#256 - Luat Hoang / @luat1203

10/22/2019 at 04:16AM

10
#257 - てら@FighTimerで作業記録 / @sorahako0515

10/22/2019 at 03:42PM

10
#258 - TimMcGuire / @mcguire

10/22/2019 at 04:36PM

10
#259 - scalableprototyping / @scalableprotot1

10/22/2019 at 08:34PM

10
#260 - Timmy! / @timx

10/22/2019 at 08:48PM

10
#261 - yousef Ibrahim / @YucefIbrahim

10/23/2019 at 09:39PM

10
#262 - liad oz / @LiadOzIL

10/24/2019 at 06:43AM

10
#263 - Pierroninio / @uftos

10/25/2019 at 08:26AM

10
#264 - Doemae / @Doemae02

10/25/2019 at 07:35PM

10
#265 - Chadj Tomis / @ChadjTomis

10/25/2019 at 10:42PM

10
#266 - Velvet thunder / @wallybh

10/28/2019 at 09:45PM

10
#267 - Serghei Cebotari / @scebotari66

10/29/2019 at 02:31PM

10
#268 - Julian Stanley / @julianstanley_

10/31/2019 at 02:54PM

10
#269 - Matt Aschmann / @ma7hatter

10/31/2019 at 04:51PM

10
#270 - GrimmT / @GrimmT10

11/01/2019 at 08:41AM