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 802 remaining solutions by signing in and submitting your own entry
#803 @-----{} / @DavidAr99288709 - Score: 183 - 09/05/19 @ 14:04
$i;<BS><Esc><Right><Right>I<Esc><Down><Down><Left><Left><Up><Up><Down><Down><Down><Down><Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Up><Right><Right><Right><Right><Right><Up><Up><Down><Up><Up><Up><Left><Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><CR><Up><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>i<Right>;<Down><Right><Right><Right><Right><Right>;<Down>l;<BS><BS>;<Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>;<Down><Down>;<Down>;<Esc>:wq!<CR>

0 comments


Created by: @koern82

803 active golfers, 2844 entries

Leaderboard (lowest score wins):
22
#751 - Larry Adames / @LarryAdames

07/02/2019 at 03:55PM

22
#752 - Vincent Russo / @captainhamptons

08/08/2019 at 03:22AM

22
#753 - Anthony c / @Anthony74456216

08/08/2019 at 03:22PM

22
#754 - Sam A. Horvath-Hunt / @SamHH95

08/18/2019 at 10:41AM

22
#755 - Alexey Kuntsevich / @jezzarax

08/26/2019 at 11:35AM

23
#756 - Am Jam / @LoneJam

06/07/2019 at 12:26AM

23
#757 - duyanh.y4n.pham / @PhamY4n

06/10/2019 at 05:09PM

23
#758 - Lewis Marshall / @LewisAMarshall

06/16/2019 at 06:22PM

23
#759 - lourenco #EleNao / @lourenco

07/14/2019 at 04:47AM

23
#760 - aakarsh / @aakarsh

08/30/2019 at 10:31PM

23
#761 - xxy / @xu_xiang_yang

09/10/2019 at 01:51PM

23
#762 - Alex Bartol / @alexbartol

09/12/2019 at 11:44PM

24
#763 - Vlad Tutunea / @Vlad_Ovidiu

06/18/2019 at 07:05PM

24
#764 - 小林子在猫本 / @YinanLIANG

07/29/2019 at 06:30AM

25
#765 - Ioannis Cherouvim / @cherouvim

09/10/2019 at 06:04PM

26
#766 - Dirk Doof / @TheDevMinerTV

07/23/2019 at 09:17PM

26
#767 - snoopy1234 / @snoopy123413

08/09/2019 at 10:29AM

26
#768 - Tom 📡 / @thomaspsteven

08/24/2019 at 12:48AM

26
#769 - Majik T. Gathrin / @MajikThaGathrin

09/06/2019 at 06:09PM

27
#770 - Chris G / @AboutThatThing

06/10/2019 at 09:03AM

27
#771 - Березницкий Вадим / @vad1mster

07/06/2019 at 05:05PM

27
#772 - bjarne stroustrup (dj set) / @scarletdenizen

08/02/2019 at 09:04PM

28
#773 - lisnfu / @lisnfu

06/29/2019 at 04:01PM

28
#774 - Ronnapob Ritprasert / @Ronnabop

07/07/2019 at 04:57AM

28
#775 - sed / @811272067649

08/16/2019 at 01:11PM

28
#776 - Temp / @San5nom

09/16/2019 at 02:00PM

28
#777 - jeremy / @jeremy67339762

09/18/2019 at 04:19PM

29
#778 - Vim Golfer / @VimGolfer6

06/30/2019 at 04:59PM

29
#779 - Arian Moslem / @ArianMoslem1

07/11/2019 at 12:41AM

29
#780 - Brandon Rowe / @optiquest21

08/21/2019 at 08:54PM