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
#61 - Miłosz Łakomy / @foobar01123

06/26/2019 at 10:42AM

10
#62 - Nathan Knox / @the_nathan_knox

06/26/2019 at 02:11PM

10
#63 - Test Account / @testycc

06/26/2019 at 04:54PM

10
#64 - Eric He / @EricHe_

06/26/2019 at 09:40PM

10
#65 - Kai.Li / @KaiLi19

06/27/2019 at 02:23AM

10
#66 - Sadot Cortés / @sadotsoy

06/28/2019 at 03:23AM

10
#67 - chris / @chris_linchen

06/28/2019 at 07:11AM

10
#68 - mkaminaga / @mkmng3

06/28/2019 at 07:47AM

10
#69 - kasper / @kasper72454971

06/29/2019 at 01:05PM

10
#70 - Dan Yeaw / @danyeaw

06/30/2019 at 01:59AM

10
#71 - Wizard_KumaChan / @Wizard_KumaChan

06/30/2019 at 11:04AM

10
#72 - Philip / @vCoRezZ

06/30/2019 at 06:35PM

10
#73 - Reuben Reyes / @rreubenreyes

07/01/2019 at 04:57AM

10
#74 - Slavujko / @Slavujko3

07/02/2019 at 06:57PM

10
#75 - Артур Кашаев / @KashaevArthur

07/03/2019 at 10:01AM

10
#76 - Giulio Bottari / @giuliobottari

07/04/2019 at 03:33AM

10
#77 - Julien Gormotte / @gormux

07/05/2019 at 08:35AM

10
#78 - ixf / @ixfdv

07/05/2019 at 05:53PM

10
#79 - David G0LD0 Forcier / @G0lD015

07/05/2019 at 09:07PM

10
#80 - Riley Shea / @RShea001

07/06/2019 at 12:39PM

10
#81 - Filipe Brandenburger / @filbranden

07/06/2019 at 05:01PM

10
#82 - Darren Firth / @DarrenSFirth

07/07/2019 at 05:03AM

10
#83 - Kvazhir / @kvazhir

07/07/2019 at 12:35PM

10
#84 - Gustavo Almeida / @gustaalmeidaws

07/07/2019 at 03:53PM

10
#85 - mocoma / @mocoma1

07/08/2019 at 10:35AM

10
#86 - ylv / @ylv_io

07/09/2019 at 05:33PM

10
#87 - TestaPerro / @TestaPerro

07/11/2019 at 06:36PM

10
#88 - Korgan / @Korgan36725554

07/13/2019 at 04:12PM

10
#89 - ゴエモン(俗稱).born / @_toku_san

07/17/2019 at 06:19AM

10
#90 - Adam Katz / @AdamKat01277576

07/17/2019 at 11:32AM