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

2622 active golfers, 9335 entries

Leaderboard (lowest score wins):
10
#361 - Larry McClenon / @uptotheroof

12/31/2019 at 04:29PM

10
#362 - whale / @Hari84444713

01/03/2020 at 01:23AM

10
#363 - jyuxian / @jyuxian

01/04/2020 at 04:21AM

10
#364 - James Hessin / @JamesHessin

01/05/2020 at 11:21PM

10
#365 - Tyler Culdler / @culdler

01/07/2020 at 12:57PM

10
#366 - Bashar Jaan Khan / @basharjaankhan

01/07/2020 at 01:08PM

10
#367 - lev / @nouvelliu

01/07/2020 at 02:20PM

10
#368 - David Guevara / @LordCraftzDz

01/11/2020 at 12:40AM

10
#369 - mowglian / @mowglian

01/11/2020 at 12:26PM

10
#370 - Stefan Bjarnason / @stefanttb

01/11/2020 at 05:32PM

10
#371 - I / @isxln

01/14/2020 at 03:36AM

10
#372 - Karnival K / @K4rnival

01/14/2020 at 08:42AM

10
#373 - 밤색 / @aeisura

01/14/2020 at 09:18AM

10
#374 - Jakub Troszok / @zosoooo

01/17/2020 at 11:51AM

10
#375 - Julien IsCool / @IscoolJulien

01/17/2020 at 04:07PM

10
#376 - John / @Guyer250

01/17/2020 at 11:38PM

10
#377 - Gero Zimmer / @gerozimmer

01/18/2020 at 04:55PM

10
#378 - Flowepmed S. Sirch / @iluvfugu

01/19/2020 at 01:20AM

10
#379 - Diego Navarro / @die_4001

01/20/2020 at 08:47PM

10
#380 - Kyle X. Clark / @KyXr_Clark

01/21/2020 at 12:38AM

10
#381 - く / @noblack_nolife

01/21/2020 at 06:23AM

10
#382 - Rune Warhuus / @DinkDonkNorway

01/21/2020 at 08:13AM

10
#383 - Michael Meixner / @meixner62

01/21/2020 at 11:15AM

10
#384 - Jiří Szkandera / @JiriSzkandera

01/21/2020 at 08:35PM

10
#385 - たかを / @mzntaka0

01/22/2020 at 12:51PM

10
#386 - li / @li94938987

01/23/2020 at 05:51PM

10
#387 - Andre / @5starsmug

01/24/2020 at 11:37AM

10
#388 - Vladimir / @pmmepatchcables

01/24/2020 at 02:50PM

10
#389 - John Smith / @JohnSmith448816

01/25/2020 at 11:06PM

10
#390 - Lukas Klingberg / @ElKlingberg

01/26/2020 at 04:19PM