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

1681 active golfers, 6282 entries

Leaderboard (lowest score wins):
10
#331 - Shubham Aggarwal / @agshubh49

12/11/2019 at 10:22AM

10
#332 - heyyou / @hey3you3

12/11/2019 at 03:13PM

10
#333 - Siddhartha [not giving away free coins] / @siddhartha_cryp

12/12/2019 at 04:45AM

10
#334 - Duggan / @CallMeDuggan

12/12/2019 at 04:54AM

10
#335 - 坪井和成 / @dadasutasudadas

12/13/2019 at 08:06AM

10
#336 - kashikasitaro / @kashikasitaro

12/14/2019 at 12:42PM

10
#337 - Vasily / @wolvschool

12/14/2019 at 07:58PM

10
#338 - Akira Sasaki / @hikomimo

12/15/2019 at 03:48PM

10
#339 - Daniel Kukuła / @dkuku

12/15/2019 at 03:48PM

10
#340 - Shanmukh chaitanya / @Shanmukhchaita1

12/16/2019 at 07:09AM

10
#341 - Sebastian Motraghi / @seb_m

12/17/2019 at 06:07PM

10
#342 - Nick Francke / @GoldHorizon

12/18/2019 at 11:40AM

10
#343 - l4cr0ss / @l4cr0ss

12/18/2019 at 11:22PM

10
#344 - 新 / @kuropp_

12/19/2019 at 02:23AM

10
#345 - TW / @tangw

12/20/2019 at 02:54AM

10
#346 - J / @JellyTheWobbly

12/20/2019 at 06:49AM

10
#347 - no / @no82797391

12/21/2019 at 12:54AM

10
#348 - どい / @wai_doi

12/21/2019 at 06:36AM

10
#349 - hsxyl / @hsxyl2

12/21/2019 at 09:39AM

10
#350 - Delon / @delonleonard

12/22/2019 at 12:38AM

10
#351 - Simon Bucher / @SimonBucher10

12/22/2019 at 05:55PM

10
#352 - Nate / @natedoran

12/23/2019 at 04:42AM

10
#353 - Sujay Vadlakonda / @SujayVadlakonda

12/24/2019 at 04:30PM

10
#354 - rirze / @SourabhWasTaken

12/24/2019 at 07:53PM

10
#355 - zqi / @zq11110320

12/26/2019 at 08:24AM

10
#356 - x94ru / @x94ru

12/26/2019 at 11:59AM

10
#357 - Francesco Minnocci / @fminnocci

12/26/2019 at 10:18PM

10
#358 - 임덕윤 / @SnLHUF5ZYJXqI1m

12/28/2019 at 07:02AM

10
#359 - F. Nord / @rettetdieborg

12/29/2019 at 04:34PM

10
#360 - Petr Klimenko / @Petka17

12/30/2019 at 06:53PM