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 1293 remaining solutions by signing in and submitting your own entry
#1294 @-----{} / @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

1294 active golfers, 4831 entries

Leaderboard (lowest score wins):
11
#451 - Petru-Armand Bancila / @petruarmand

07/08/2019 at 03:33AM

11
#452 - alphamethyl / @alphamethyl1

07/08/2019 at 04:13AM

11
#453 - BaffaloP 🐃🎨 / @bbaffalopp

07/08/2019 at 07:32PM

11
#454 - c0llision / @sh3llcode

07/09/2019 at 02:55PM

11
#455 - Etai Nativ / @enativ72

07/10/2019 at 06:05AM

11
#456 - Peter Demin / @peterdemin

07/10/2019 at 05:46PM

11
#457 - aurelian ardeleanu / @inquarto

07/10/2019 at 07:44PM

11
#458 - mag1cal.unic0rn / @unic0rn_mag1cal

07/11/2019 at 05:45AM

11
#459 - Neil Struthers / @struthersneil

07/11/2019 at 05:03PM

11
#460 - Sean Sullivan / @_seanyneutron

07/11/2019 at 05:22PM

11
#461 - Restroom Sounds / @RestroomSounds

07/12/2019 at 03:18AM

11
#462 - Adam Pollack / @apollack11

07/12/2019 at 10:39PM

11
#463 - pf / @pedrofreirex

07/13/2019 at 08:52PM

11
#464 - icicle / @icicle_freeze

07/14/2019 at 01:50PM

11
#465 - Renato Müller Rosa / @ItsmeGordo

07/15/2019 at 03:57PM

11
#466 - Steven Wood / @StvnW

07/15/2019 at 05:55PM

11
#467 - Raghav Subramaniam / @raghavsub

07/15/2019 at 11:24PM

11
#468 - ^spew$ / @spew79241369

07/16/2019 at 11:29PM

11
#469 - Nick Yeow / @nickyeow

07/18/2019 at 03:49PM

11
#470 - Bradley M. Small / @BradleySmall

07/19/2019 at 01:01AM

11
#471 - Jacob Degeling / @JacobDegeling

07/19/2019 at 01:39AM

11
#472 - Jonáš Šerých / @serycjon

07/19/2019 at 09:03PM

11
#473 - Richard Acosta / @accosting

07/20/2019 at 12:21AM

11
#474 - David Needham / @davidmneedham

07/20/2019 at 01:08AM

11
#475 - Bence Nagy / @underyx

07/20/2019 at 09:43AM

11
#476 - mmaorc / @mmaorc1

07/20/2019 at 11:56AM

11
#477 - Hxhxhrra / @hxhxhrra

07/20/2019 at 06:19PM

11
#478 - asdkljsadladlaldcxmzwqewq / @asdkljsadladla1

07/21/2019 at 07:25AM

11
#479 - codegeist / @code_geist

07/21/2019 at 01:02PM

11
#480 - Calum Halpin / @calumhalpin

07/21/2019 at 06:36PM