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

2632 active golfers, 9365 entries

Leaderboard (lowest score wins):
10
#481 - スペー / @homander2017

04/18/2020 at 04:19AM

10
#482 - sabinmaharjan40@gmail.com / @sabinmaharjan40

04/18/2020 at 08:03PM

10
#483 - Sabin maharjan / @Sabinma86681681

04/19/2020 at 08:01AM

10
#484 - David / @imdavidhwang

04/19/2020 at 11:44PM

10
#485 - sherman / @sherman37029653

04/21/2020 at 02:35AM

10
#486 - António Almeida / @tonydapinta

04/23/2020 at 02:23PM

10
#487 - Martin Stickley / @ChromaticRanger

04/23/2020 at 03:07PM

10
#488 - Cristian Cazacu / @kryshac

04/23/2020 at 08:51PM

10
#489 - Victor / @victor_rma

04/24/2020 at 02:50AM

10
#490 - Sylvain Leroux / Yes, I Know IT ! / @Yes_I_Know_IT

04/27/2020 at 09:30PM

10
#491 - lofoneax / @lofoneax

04/28/2020 at 10:15PM

10
#492 - Arthur Goodman / @ArthurGoodman3

04/29/2020 at 02:39PM

10
#493 - Julien Lerouge / @rackamx

04/30/2020 at 10:42PM

10
#494 - Sherab Giovannini / @shaddycls

04/30/2020 at 11:40PM

10
#495 - Shivam mehta / @maniac_en

05/01/2020 at 10:01AM

10
#496 - Samuel Vaiter / @vaiter

05/05/2020 at 12:28PM

10
#497 - MPDR / @MPDR200011

05/05/2020 at 02:17PM

10
#498 - Slava Gachkaylo / @slavyan

05/05/2020 at 04:30PM

10
#499 - Pawel Wenda / @pwlwnd

05/05/2020 at 09:51PM

10
#500 - haipeng li / @HaipengLie

05/07/2020 at 03:36AM

10
#501 - PK / @pkeugine

05/07/2020 at 07:36AM

10
#502 - Anay Karnik / @anay_karnik

05/07/2020 at 03:38PM

10
#503 - Frederik F. / @FrederikZen96

05/07/2020 at 04:30PM

10
#504 - Iliyapichugin / @iliyapichugin

05/07/2020 at 09:41PM

10
#505 - Fabian Ahbeck / @FAhbeck

05/08/2020 at 11:13PM

10
#506 - Essiane Abel / @essianeabel

05/09/2020 at 11:51AM

10
#507 - StormTheWyvern / @Dragon77Scaly

05/09/2020 at 01:00PM

10
#508 - Shubham Tatvamasi / @shubhctl

05/10/2020 at 06:54AM

10
#509 - Андриянов Роман / @angeldeath29

05/10/2020 at 03:01PM

10
#510 - Bram V / @BramV44

05/10/2020 at 08:05PM