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 3072 remaining solutions by signing in and submitting your own entry
Created by: @koern82

3074 active golfers, 10887 entries

Leaderboard (lowest score wins):
10
#451 - Kelvin Chaves / @_kelvincs

03/21/2020 at 05:42PM

10
#452 - Yan Xue / @_yxue

03/21/2020 at 08:56PM

10
#453 - Marco / @Marco24456514

03/21/2020 at 09:34PM

10
#454 - Robberechts Arne / @ArneRobberechts

03/22/2020 at 02:44PM

10
#455 - Omer Hamerman / @omergsr

03/22/2020 at 09:56PM

10
#456 - Nick Buser / @buser_nick

03/23/2020 at 12:25AM

10
#457 - Costel Radulescu / @_wizard_

03/23/2020 at 10:10PM

10
#458 - tinyfat / @tanghaijun12345

03/27/2020 at 09:33AM

10
#459 - koyumeishi / @koyumeishi_

03/27/2020 at 07:03PM

10
#460 - Patrick Baxter / @ZenAether

03/28/2020 at 05:30AM

10
#461 - Frank Harrison / @doublethefish

03/29/2020 at 02:21PM

10
#462 - Michael Buckley / @apolatg

03/29/2020 at 10:44PM

10
#463 - Jesse Test / @JesseTest15

03/30/2020 at 09:02PM

10
#464 - agricantare / @agricantare

03/31/2020 at 08:34AM

10
#465 - Вова Соколович / @vovasokoll

04/04/2020 at 03:51AM

10
#466 - Daniel Fleischman / @vimgolfdaniel

04/05/2020 at 08:25PM

10
#467 - Caio Marcelo / @CaioMCG

04/06/2020 at 02:25AM

10
#468 - Anon Y. Mous / @AnonYMo50660689

04/07/2020 at 10:09PM

10
#469 - せいほう / @FICSQF

04/08/2020 at 12:59AM

10
#470 - Samarjeet Singh / @thelehhman

04/09/2020 at 07:54AM

10
#471 - Kelvin Meyer / @Kelvin_Meyer15

04/10/2020 at 08:04AM

10
#472 - Atzz / @AtzzCokeK

04/11/2020 at 06:08AM

10
#473 - Moatvald / @moatvald

04/11/2020 at 02:08PM

10
#474 - edvrds / @edvrds

04/12/2020 at 08:43AM

10
#475 - Vinh Vu / @vinhhv94

04/12/2020 at 06:21PM

10
#476 - hanxuspg04 / @hanxuspg041

04/14/2020 at 08:28PM

10
#477 - vimmer / @vimmer14

04/15/2020 at 09:33PM

10
#478 - Sikker Rosendal / @srosendaldk

04/17/2020 at 11:59AM

10
#479 - スペー / @homander2017

04/18/2020 at 04:19AM

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

04/18/2020 at 08:03PM