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
#361 - Peter Meehan / @22A

07/27/2019 at 04:45PM

11
#362 - Jonathan Browning / @yungjig90

07/29/2019 at 09:53PM

11
#363 - Ohan / @Br0han

07/30/2019 at 03:49AM

11
#364 - Silap Aliyev / @oaakx

07/30/2019 at 09:09AM

11
#365 - Pittson / @Pittson95

07/30/2019 at 07:41PM

11
#366 - David Elkouss / @d_elkouss

07/31/2019 at 07:11AM

11
#367 - Robinson Bernand / @RobynBekouz

07/31/2019 at 08:18AM

11
#368 - John / @JohnJDoe2

07/31/2019 at 10:59AM

11
#369 - AntonioWong / @AntonioWong

07/31/2019 at 06:52PM

11
#370 - forvimgolf / @forvimgolf2

08/01/2019 at 07:06PM

11
#371 - Joel Elkins / @dice_tea

08/01/2019 at 08:30PM

11
#372 - Dax / @zacoxi

08/02/2019 at 03:39AM

11
#373 - Matthew Grossman / @GrossmanMr

08/02/2019 at 04:27AM

11
#374 - Isaak Meier / @IsaakMeier

08/02/2019 at 03:26PM

11
#375 - Vim Golf Test Account / @TestVim

08/02/2019 at 03:42PM

11
#376 - Karthik / @karthikbhata

08/02/2019 at 04:04PM

11
#377 - Daniel Steinberg / @dstein64

08/02/2019 at 10:23PM

11
#378 - mattwebster / @mattwebster

08/03/2019 at 06:04AM

11
#379 - Cryptomaiko / @cryptomaiko

08/03/2019 at 08:05PM

11
#380 - merphant / @merphant

08/05/2019 at 07:08AM

11
#381 - Matti Sairanen / @MattiSairanen

08/05/2019 at 07:42AM

11
#382 - Mr_Djez / @DjezMr

08/05/2019 at 11:43AM

11
#383 - nvb46c74f8ih / @nvb46c74f8ih

08/05/2019 at 12:10PM

11
#384 - Chad Harris / @chad__harris

08/06/2019 at 01:05AM

11
#385 - André Reigoto / @AndreReigoto

08/08/2019 at 12:59AM

11
#386 - Connie Qi / @connieqi

08/08/2019 at 02:35AM

11
#387 - lvi / @astrocytew

08/08/2019 at 02:51PM

11
#388 - Nate Hanson / @nayyfin

08/08/2019 at 03:08PM

11
#389 - Noisome Possum / @NoisomePossum

08/08/2019 at 08:41PM

11
#390 - daniel / @daniel31464605

08/09/2019 at 09:29AM