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
#421 - Oleg Andriyanov / @OAndriyanov

06/24/2019 at 09:14AM

11
#422 - Aurel / @AurelienFebvre

06/24/2019 at 08:29PM

11
#423 - Matt / @m4tty1c3

06/25/2019 at 04:06AM

11
#424 - Joseph A Shalabi / @JosephShalabi

06/26/2019 at 07:26PM

11
#425 - cinder 🔥 / @cyndrdev

06/27/2019 at 04:11PM

11
#426 - lofoneax / @lofoneax

06/27/2019 at 06:06PM

11
#427 - Floyd Gantt / @fgantt

06/27/2019 at 06:35PM

11
#428 - Johnny footlight / @JFootlight

06/28/2019 at 03:47PM

11
#429 - Sean Stapleton / @byseanstapleton

06/28/2019 at 04:51PM

11
#430 - Epecb / @BceEpecb

06/28/2019 at 10:09PM

11
#431 - Josh Braun / @bbraunj

06/30/2019 at 03:25AM

11
#432 - Scott Schlesier / @sschlesier

06/30/2019 at 04:00PM

11
#433 - Tom Dalziel / @dalziel_tom

06/30/2019 at 10:10PM

11
#434 - Sergey Ryabko / @RyabkoSergey

07/01/2019 at 03:15PM

11
#435 - wandering sol / @SunReyE

07/02/2019 at 07:18AM

11
#436 - vasyharan / @vasyharan

07/02/2019 at 06:58PM

11
#437 - Marcus Loo / @MarcusLoo1

07/03/2019 at 02:28AM

11
#438 - せいほう / @FICSQF

07/03/2019 at 02:43AM

11
#439 - garry quested / @GQuested

07/03/2019 at 09:29AM

11
#440 - Bruno / @ShadowDancer437

07/03/2019 at 08:00PM

11
#441 - Kevin Durand / @kdthefakemvp

07/03/2019 at 09:56PM

11
#442 - as-night / @asnight2

07/04/2019 at 02:08PM

11
#443 - Chester Yap / @Chest_ErYap

07/06/2019 at 04:03AM

11
#444 - たぬぽん / @eJYwMbymauWKF4B

07/06/2019 at 12:38PM

11
#445 - Karan Gajwani / @karangb

07/06/2019 at 02:27PM

11
#446 - Mihai Crăiță / @mihai_craita

07/06/2019 at 06:37PM

11
#447 - T A / @SirAviles

07/06/2019 at 10:50PM

11
#448 - Adam Stephen / @2_71828

07/07/2019 at 04:55PM

11
#449 - mout78 / @mout78

07/07/2019 at 09:12PM

11
#450 - Lingyu Yi / @LgxLingyu

07/08/2019 at 03:08AM