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
#511 - mattwebster / @mattwebster

08/03/2019 at 06:04AM

11
#512 - Cryptomaiko / @cryptomaiko

08/03/2019 at 08:05PM

11
#513 - merphant / @merphant

08/05/2019 at 07:08AM

11
#514 - Matti Sairanen / @MattiSairanen

08/05/2019 at 07:42AM

11
#515 - Mr_Djez / @DjezMr

08/05/2019 at 11:43AM

11
#516 - nvb46c74f8ih / @nvb46c74f8ih

08/05/2019 at 12:10PM

11
#517 - Chad Harris / @chad__harris

08/06/2019 at 01:05AM

11
#518 - AndrΓ© Reigoto / @AndreReigoto

08/08/2019 at 12:59AM

11
#519 - Connie Qi / @connieqi

08/08/2019 at 02:35AM

11
#520 - lvi / @astrocytew

08/08/2019 at 02:51PM

11
#521 - Nate Hanson / @nayyfin

08/08/2019 at 03:08PM

11
#522 - Noisome Possum / @NoisomePossum

08/08/2019 at 08:41PM

11
#523 - daniel / @daniel31464605

08/09/2019 at 09:29AM

11
#524 - Matt Tuttle / @Matt_Tuttle

08/09/2019 at 03:36PM

11
#525 - Nicolas πŸ‘¨β€πŸ’»πŸ‡¨πŸ‡¦ / @martinni39

08/09/2019 at 06:07PM

11
#526 - ameebo / @meebwish546

08/09/2019 at 07:18PM

11
#527 - γ‚Šγ‚“γ” / @ringo9971

08/10/2019 at 05:05AM

11
#528 - Coder's Crib / @storyb3atz

08/11/2019 at 10:25AM

11
#529 - Hamza Shahid / @Zecuria

08/12/2019 at 01:35AM

11
#530 - I:Boss / @ibossptk

08/12/2019 at 12:53PM

11
#531 - Chris Shorrock / @EbinFlow

08/13/2019 at 03:48PM

11
#532 - Richard Liu / @Richard90155430

08/13/2019 at 09:09PM

11
#533 - Wistan Chou / @wisty97

08/13/2019 at 10:42PM

11
#534 - Jake Treacher / @jaketreacher

08/14/2019 at 09:43AM

11
#535 - Milind Mantri / @MantriMilind

08/15/2019 at 07:04AM

11
#536 - Arnaud / @arnaudmm

08/16/2019 at 03:17PM

11
#537 - Hot Take / @hottake69

08/17/2019 at 08:32PM

11
#538 - Linfeng LiΒ·ζŽζž—ε³° / @llinfeng

08/19/2019 at 01:32PM

11
#539 - b8406329 / @b8406329

08/19/2019 at 06:29PM

11
#540 - John Do / @JohnDo89513370

08/20/2019 at 08:51AM