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
#301 - Peter Steffey / @ps_iclimbthings

11/23/2019 at 02:35AM

10
#302 - bassnecter / @lothedr

11/23/2019 at 07:10AM

10
#303 - Travis Abram / @imaginal

11/23/2019 at 11:46PM

10
#304 - zlogan / @zlogan2003

11/24/2019 at 02:32AM

10
#305 - Przemysław Michalak / @dambusio

11/24/2019 at 09:58AM

10
#306 - oldandslow / @oldandslow5

11/25/2019 at 01:38PM

10
#307 - Mike Beattie / @mjbnz

11/26/2019 at 06:44AM

10
#308 - Jérémy Autran / @jjautran

11/26/2019 at 09:31AM

10
#309 - Scott Myц / @ScottMuc

11/26/2019 at 10:52AM

10
#310 - Eviber / @youvaaaaa

11/26/2019 at 02:39PM

10
#311 - Shaw C. / @Xiao_SCKii

11/29/2019 at 10:28AM

10
#312 - jan Kise / @jan_kise

11/29/2019 at 12:33PM

10
#313 - bruno cunha / @brn_cnh

11/30/2019 at 12:03AM

10
#314 - およねさん / @yuukikun31

12/01/2019 at 02:53AM

10
#315 - Eric Johnson / @dej79

12/02/2019 at 08:47PM

10
#316 - David Barker / @dashleybarker

12/02/2019 at 11:26PM

10
#317 - Paweł Samoraj / @samorajp

12/03/2019 at 03:26PM

10
#318 - David Ritchie / @deritchie

12/03/2019 at 10:24PM

10
#319 - Erik Peterson / @subwindow

12/05/2019 at 12:45AM

10
#320 - Jonathan Jeffrey / @jonrjeffrey

12/05/2019 at 03:58AM

10
#321 - Hector Ricardo / @Hector_Ricardo3

12/05/2019 at 06:57AM

10
#322 - Pierre Balayé / @PierreBalaye

12/06/2019 at 03:54PM

10
#323 - Sergi Castro / @sergicastro2001

12/08/2019 at 03:43PM

10
#324 - apechinsky / @apechinsky

12/08/2019 at 07:32PM

10
#325 - Tefe / @tefetic

12/09/2019 at 09:23PM

10
#326 - Jacques / @jpmarcotte

12/09/2019 at 11:41PM

10
#327 - 이종혁 / @BluePaisa

12/10/2019 at 05:04AM

10
#328 - Korbinian Stoemmer / @PaulSmecker

12/11/2019 at 08:29AM

10
#329 - Shubham Aggarwal / @agshubh49

12/11/2019 at 10:22AM

10
#330 - heyyou / @hey3you3

12/11/2019 at 03:13PM