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
#391 - Aaron Dettmann / @AaronDettmann

01/29/2020 at 06:50PM

10
#392 - Golfer9001 / @golfer9001

01/31/2020 at 12:47AM

10
#393 - Xiangzhuo Meng / @MengXiangzhuo

02/01/2020 at 05:45AM

10
#394 - Aníbal / @anibal10

02/01/2020 at 06:12PM

10
#395 - Bachelor / @bachelorwang

02/02/2020 at 04:15PM

10
#396 - Rager Florian / @FlorianRager

02/04/2020 at 07:18PM

10
#397 - おねさわ / @yama846

02/05/2020 at 03:41AM

10
#398 - Niko Kivelä / @Tovrleaf

02/05/2020 at 12:54PM

10
#399 - majo senf / @majo_senf

02/06/2020 at 03:57PM

10
#400 - Renns / @Renns95250521

02/07/2020 at 11:15PM

10
#401 - Anthony BERNARD / @TweetTontony

02/08/2020 at 09:56PM

10
#402 - Sir_Kosciej / @SKosciej

02/08/2020 at 10:17PM

10
#403 - Xor547 / @Xor547

02/09/2020 at 04:23PM

10
#404 - Jonathan Skeate / @jskeate

02/09/2020 at 07:41PM

10
#405 - Falafel Palapel / @falafelpalapel

02/11/2020 at 05:02PM

10
#406 - hwnd / @harlinwt

02/11/2020 at 07:00PM

10
#407 - jrddp / @jrddp0

02/12/2020 at 12:45AM

10
#408 - 骑空士阿为 / @wuwe19

02/12/2020 at 07:23AM

10
#409 - Максим Селиверстов / @max_developer

02/12/2020 at 08:50AM

10
#410 - LeGolfeurDu93 / @Du93Golfeur

02/13/2020 at 04:28PM

10
#411 - Greg Williams / @GregWill

02/13/2020 at 06:53PM

10
#412 - howanto / @ho_wan_

02/15/2020 at 07:02PM

10
#413 - vimgolf_tmp_1 / @1Vimgolf

02/16/2020 at 02:41PM

10
#414 - Mens Jender / @m3nder__

02/16/2020 at 06:21PM

10
#415 - Emil / @emilklindt

02/16/2020 at 09:05PM

10
#416 - Oleg / @colega

02/17/2020 at 10:05PM

10
#417 - dinodevito / @dinodevito1

02/18/2020 at 03:02AM

10
#418 - Ard / @kokojarjar

02/18/2020 at 09:30AM

10
#419 - Rollo Jenkins / @rollo_jenkins

02/18/2020 at 11:59AM

10
#420 - aca / @aca20379681

02/19/2020 at 04:28PM