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
#151 - Bryan Enders / @B_Endersstocker

08/19/2019 at 09:11PM

10
#152 - Gautham Velchuru / @skaehalk

08/20/2019 at 11:08PM

10
#153 - Mario Olofo / @mario_olofo

08/22/2019 at 03:34AM

10
#154 - Stas Krul / @ironimus42

08/22/2019 at 09:49AM

10
#155 - averageRandomPerson / @averageRandomP1

08/22/2019 at 10:55PM

10
#156 - Oleg Skillup / @skill_up

08/23/2019 at 05:54PM

10
#157 - Simon Andermatt / @SimonAndermatt

08/23/2019 at 07:35PM

10
#158 - omahn / @omahn

08/23/2019 at 09:24PM

10
#159 - gravestench / @noisevoid

08/24/2019 at 05:11AM

10
#160 - Márcio Santos / @m4rciosantos

08/24/2019 at 07:18PM

10
#161 - Daniel Rollins / @DanielJRollins

08/25/2019 at 07:24AM

10
#162 - Raymar Monte / @RaymarMonte

08/25/2019 at 02:02PM

10
#163 - David Ding / @gnidding

08/25/2019 at 06:12PM

10
#164 - blub / @agorilladriving

08/27/2019 at 01:49AM

10
#165 - Lukas Schmidt / @TheRealGeStar

08/27/2019 at 06:59AM

10
#166 - birdybirdbird / @birdybirdbird13

08/27/2019 at 12:58PM

10
#167 - freehaha / @freehaha

08/28/2019 at 04:18AM

10
#168 - JS / @jjohsan

08/28/2019 at 07:10AM

10
#169 - David Lignell / @davidlignell

08/28/2019 at 05:45PM

10
#170 - Andrew Blokzyl / @linuxKd

08/29/2019 at 02:27PM

10
#171 - ian / @ianbrault

08/29/2019 at 10:25PM

10
#172 - Doug Chan / @Coufu

08/30/2019 at 08:54PM

10
#173 - Jun Isaji / @Jisaji

08/31/2019 at 03:57PM

10
#174 - Алексей Кашуба / @Alex_Kashuba

08/31/2019 at 07:36PM

10
#175 - Vichaya Raksakunpani / @toonbcc

09/02/2019 at 07:27AM

10
#176 - ゴリラ@ウホウホウホウホウウホウホウホウホウウホウホウホウホウウホウホウホウホウウホウホウホウホウウ / @gorilla0513

09/03/2019 at 01:30PM

10
#177 - Madelyn Freed / @EcoBummer

09/03/2019 at 09:26PM

10
#178 - Wade / @vvandy

09/03/2019 at 10:43PM

10
#179 - Joel Taylor / @joeltayl

09/05/2019 at 05:46PM

10
#180 - Rohan Verma / @rhnvrm

09/05/2019 at 08:46PM