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
#571 - Florent (Flomyx) πŸ‡§πŸ‡ͺπŸ‡§πŸ‡ͺ / @SinergyTv

06/30/2020 at 12:24PM

10
#572 - ε€§ηŸ’ε…ƒζ΅· / @008Genkai

06/30/2020 at 06:16PM

10
#573 - Mats Faugli / @matsfaugli

07/03/2020 at 08:06AM

10
#574 - Reuben Narkwo / @reubwo

07/03/2020 at 11:44AM

10
#575 - HiJova / @Jova28190268

07/03/2020 at 12:43PM

10
#576 - PeiYingLiu / @PeiYing_Liu

07/03/2020 at 02:38PM

10
#577 - Johno / @JohnoPomerat

07/03/2020 at 09:51PM

10
#578 - Anton / @Zackushka

07/04/2020 at 08:53PM

10
#579 - cdan / @cdan

07/06/2020 at 10:17AM

10
#580 - Lucas Moon / @LucasMo01299826

07/07/2020 at 05:24AM

10
#581 - Leo / @badangos

07/07/2020 at 08:34AM

10
#582 - artcha / @artushkevichs

07/08/2020 at 09:31AM

10
#583 - SardarJitensha / @SJitensha

07/08/2020 at 11:39AM

10
#584 - Zachary Noble / @znoble360

07/09/2020 at 01:02AM

10
#585 - Dane Summers / @dsummersl

07/12/2020 at 06:48PM

10
#586 - Dmitry Branitskiy / @b1azer

07/14/2020 at 04:36AM

10
#587 - Jonathan / @jonathannerat

07/17/2020 at 02:29PM

10
#588 - Artur Dumchev / @Liverm0r

07/18/2020 at 07:15PM

10
#589 - Saurabh / @Saurabh09299

07/19/2020 at 02:16PM

10
#590 - Benjamin Turner / @passionsplay

07/20/2020 at 09:59PM

10
#591 - Josivan Joestar πŸ‡ΊπŸ‡³πŸŒŽπŸš€ / @MedeirosJosivan

07/21/2020 at 05:59PM

10
#592 - Norman Liu / @normanwliu

07/25/2020 at 09:21PM

10
#593 - thejazzroot / @thejazzroot

07/26/2020 at 02:16PM

10
#594 - Steve Frost / @FrostSteveFrost

07/27/2020 at 01:40AM

10
#595 - Gergely Risko / @errge

07/28/2020 at 07:30PM

10
#596 - Xaver Fleer / @XaverFleer

08/01/2020 at 05:10PM

10
#597 - ぼとぼと / @boto_voto

08/02/2020 at 06:08AM

10
#598 - Tanzeel Kazi / @tanzeelkazi

08/06/2020 at 06:06PM

10
#599 - mindgitrwx / @mindgitrwx

08/08/2020 at 01:45PM

10
#600 - Kazuki / @algo__n

08/09/2020 at 10:27AM