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

942 active golfers, 3453 entries

Leaderboard (lowest score wins):
10
#31 - z0k / @z0k

06/08/2019 at 06:18PM

10
#32 - deedeemeen / @deedeemeen

06/08/2019 at 08:53PM

10
#33 - summingbest / @summingbest

06/09/2019 at 12:29PM

10
#34 - Koba / @lkoba

06/09/2019 at 06:22PM

10
#35 - Magnus Bjuvensjö / @mbjuvensjo

06/09/2019 at 10:05PM

10
#36 - seul / @seul15987381

06/10/2019 at 04:19AM

10
#37 - Juraj Skvarla / @Athlet

06/10/2019 at 03:13PM

10
#38 - Paul Draghicescu / @pdragy

06/10/2019 at 07:48PM

10
#39 - Hugo Tai / @HugoTai100

06/11/2019 at 03:46AM

10
#40 - Artur Mróz / @MrozArtur

06/14/2019 at 08:40PM

10
#41 - Jone Marius Vignes / @inful

06/15/2019 at 12:07AM

10
#42 - phoibos92@gmail.com / @phoibos92

06/17/2019 at 03:23PM

10
#43 - Paul Yates / @PYates77

06/17/2019 at 06:48PM

10
#44 - tynanguerra / @tynanguerra

06/17/2019 at 07:33PM

10
#45 - James Lowenthal / @JamesAnthonyLow

06/17/2019 at 08:38PM

10
#46 - ARK / @ARK69712394

06/18/2019 at 01:52AM

10
#47 - ./yamada / @yamadad_

06/18/2019 at 03:02PM

10
#48 - yovimaster / @yovimaster

06/19/2019 at 01:13PM

10
#49 - hiro_3_1 / @hiroshi160301

06/19/2019 at 05:52PM

10
#50 - Andrew Scholz / @ascholzonline

06/19/2019 at 07:44PM

10
#51 - Greg Anders / @gregory_anders

06/20/2019 at 10:54PM

10
#52 - Frankie Liu / @pi31415629

06/20/2019 at 11:11PM

10
#53 - Paul Inc / @hiniol1982

06/21/2019 at 06:34PM

10
#54 - Matt Burg / @matsbleurgh

06/21/2019 at 08:29PM

10
#55 - John Herman Schwit / @JohnHermanSchwi

06/22/2019 at 12:01AM

10
#56 - hielke / @hielke24840788

06/22/2019 at 04:35PM

10
#57 - hodenkobold66 / @hodenkobold66

06/23/2019 at 10:49AM

10
#58 - Emil Braserud / @Erdustiggen

06/24/2019 at 01:14PM

10
#59 - Marcin Radomski / @_dextero

06/24/2019 at 06:36PM

10
#60 - Sai Praneeth Reddy / @rm_rfasterisk

06/25/2019 at 05:04AM