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
#451 - 김형창 / @uVmEMZsCgcYvqZi

09/05/2019 at 09:25AM

11
#452 - Baine Wedlock / @BaineWedlock

09/05/2019 at 02:04PM

11
#453 - Zach Ingbretsen / @ZIngbretsen

09/06/2019 at 11:39AM

11
#454 - Christopher Weyand / @swordman378

09/06/2019 at 03:20PM

11
#455 - Hans Lidiki / @HLidiki

09/07/2019 at 04:38PM

11
#456 - A / @777Android777

09/08/2019 at 06:40PM

11
#457 - Tosiaki / @Tosiaki1

09/08/2019 at 10:19PM

11
#458 - Jose Soto / @JoseCanHelp

09/09/2019 at 02:02AM

11
#459 - Alexander L. / @Lexol4s

09/09/2019 at 02:09PM

11
#460 - Daniel Beck / @daniel_beck_il

09/09/2019 at 03:50PM

11
#461 - Matt Walker / @MWers

09/09/2019 at 10:01PM

11
#462 - Vladislav Ganshin / @ganshin_vlad

09/10/2019 at 07:26AM

11
#463 - Yabūchi Takeshi / @WhiteKyoto

09/10/2019 at 08:24AM

11
#464 - yesuu / @yesuu15

09/10/2019 at 10:47AM

11
#465 - asfsef / @asfsef5

09/11/2019 at 09:52PM

11
#466 - dicekest / @dicekest

09/12/2019 at 01:03PM

11
#467 - Josh Cummings / @jcummingsdesign

09/13/2019 at 11:24PM

11
#468 - Matthew Flower / @MatthewFlower

09/14/2019 at 01:16AM

11
#469 - Juan Manuel Fresia / @fresiajm

09/15/2019 at 12:59AM

11
#470 - Daniel Ting / @dting0104

09/15/2019 at 01:12PM

11
#471 - warwickrulez / @warwickrulez

09/15/2019 at 06:47PM

11
#472 - Ollin Boer Bohan / @madebyollin

09/15/2019 at 07:11PM

11
#473 - Jan Uhlík / @JanUhlik

09/16/2019 at 06:58AM

11
#474 - Andrey / @andreyrmg

09/16/2019 at 02:03PM

11
#475 - Pogues 123 / @123Pogues

09/16/2019 at 07:45PM

11
#476 - Cassandra / @kascein

09/17/2019 at 07:49AM

11
#477 - Francisco Romero / @PanchoopRomero

09/17/2019 at 11:16PM

11
#478 - Ariel Miculas / @ArielMiculas

09/18/2019 at 11:51AM

11
#479 - Phrasendroschke / @phrasendroschke

09/18/2019 at 01:25PM

11
#480 - Luca db / @cyan_pencil

09/19/2019 at 08:51PM