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):
11
#481 - aᵣᵤhᵢ / @aruhi_

09/20/2019 at 02:29PM

11
#482 - Clmi / @c_decaf

09/21/2019 at 09:13AM

12
#483 - Miki Tebeka / @tebeka

06/05/2019 at 06:54AM

12
#484 - Miles Edland / @ShutUpMiles

06/06/2019 at 06:41AM

12
#485 - Mike Clarke / @clarkema

06/07/2019 at 12:12PM

12
#486 - Paweł Styczewski / @kryspuss

06/14/2019 at 10:28AM

12
#487 - Sjoerd Thijsse / @SjoerdThijsse

06/25/2019 at 05:50PM

12
#488 - Corey Alexander / @coreyja_dev

06/27/2019 at 02:47AM

12
#489 - pockman / @pockman8

06/29/2019 at 01:46PM

12
#490 - Reid Mitchell / @reidmit

07/05/2019 at 05:35AM

12
#491 - tschoschi / @Todesshnizzle

07/10/2019 at 11:02AM

12
#492 - Paul Sonkoly / @Phaul

07/14/2019 at 08:53AM

12
#493 - Marcus Grass / @grass_marcus

07/15/2019 at 02:46PM

12
#494 - Luke Pearce / @kulehndluke

07/19/2019 at 08:34PM

12
#495 - Sunil Srivatsa / @sunilsrivatsa

07/20/2019 at 10:18AM

12
#496 - Tom Charles / @tomcharles__

07/21/2019 at 06:45PM

12
#497 - Luki / @lhumbel

07/22/2019 at 10:36AM

12
#498 - Walker Boh / @walker_boh

07/22/2019 at 12:53PM

12
#499 - Jonathan Eidsness / @jonathaneidsnes

07/22/2019 at 05:52PM

12
#500 - wwilkins / @wwilkins

07/23/2019 at 11:54PM

12
#501 - Matt Vaughn / @mattttvaughn

07/28/2019 at 10:46PM

12
#502 - Tosoa Bacca / @elsifaka

07/29/2019 at 05:06AM

12
#503 - Ivo Blöchliger / @aigledesalpes

08/01/2019 at 07:37PM

12
#504 - matthew brett / @matthewbrett

08/06/2019 at 08:52PM

12
#505 - beetroot_fox / @BeetrootF

08/07/2019 at 09:16PM

12
#506 - Thomas Tøkje / @tokjenator

08/09/2019 at 02:31PM

12
#507 - コータ=ザッカーバーグ / @kota_zuckerberg

08/10/2019 at 07:21PM

12
#508 - bob / @vg41

08/12/2019 at 06:26PM

12
#509 - BESSENG A IREH Guy / @guybesseng

08/15/2019 at 01:54PM

12
#510 - Andrew Leung / @ZaiLeung

08/18/2019 at 02:37AM