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
#421 - GAUTAM V NAIK / @gautamnaik1994

08/24/2019 at 11:29AM

11
#422 - Emily Macon / @ET_Macon

08/24/2019 at 11:09PM

11
#423 - theBecwar / @thebecwar

08/25/2019 at 06:05PM

11
#424 - Scott Moore / @scottwillmoore

08/26/2019 at 12:11AM

11
#425 - 波波 / @sbob87

08/26/2019 at 02:26AM

11
#426 - Duggan / @CallMeDuggan

08/27/2019 at 02:35PM

11
#427 - Oleg Roshupkin / @jjjahson

08/27/2019 at 07:07PM

11
#428 - Christian / @paierlep

08/27/2019 at 07:23PM

11
#429 - John Meuser / @meuserj

08/27/2019 at 07:47PM

11
#430 - Ronald Bell / @rdbell

08/28/2019 at 12:05AM

11
#431 - ciela / @lededex

08/28/2019 at 06:47PM

11
#432 - Marcin Krajewski / @mkrajewski_

08/28/2019 at 08:53PM

11
#433 - sundeep routhu / @sundeep12005

08/29/2019 at 02:07PM

11
#434 - Brice Letcher / @bricoletc

08/29/2019 at 07:28PM

11
#435 - Rational Beast / @rationalbeast_

08/29/2019 at 09:16PM

11
#436 - chriscian / @christianfarani

08/30/2019 at 05:22AM

11
#437 - S-YOU / @__s_you

08/30/2019 at 03:22PM

11
#438 - じんぺー / @jinpei0908

08/31/2019 at 07:51AM

11
#439 - Menaal Cochran / @CochranMenaal

08/31/2019 at 07:35PM

11
#440 - asdasd1337 / @asdasd13372

08/31/2019 at 08:24PM

11
#441 - Bill Ruddock / @biinari

08/31/2019 at 10:00PM

11
#442 - greengreen / @greengr09073862

09/01/2019 at 01:51PM

11
#443 - rg thomas / @rgt47

09/02/2019 at 01:07AM

11
#444 - darcy / @darcysail

09/02/2019 at 02:59AM

11
#445 - Jonghyun Yun / @JonghyunYun

09/02/2019 at 03:18AM

11
#446 - José / @AngelGaldamez

09/02/2019 at 11:38PM

11
#447 - Christopher / @Rephiscorth

09/03/2019 at 03:19PM

11
#448 - ░C░o░o░p░e░r░ ░L░u░c░e░ / @16cluce

09/04/2019 at 05:11AM

11
#449 - Adam Anderson / @EspressoCoder

09/04/2019 at 01:51PM

11
#450 - Kirsten Nordine / @kirsten_nordine

09/05/2019 at 03:24AM