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
#271 - CF / @CF42231856

11/04/2019 at 01:56PM

10
#272 - Апанович Данил / @dvapan

11/06/2019 at 08:57AM

10
#273 - Josh Cummings / @jcummingsdesign

11/07/2019 at 01:04AM

10
#274 - 永森 / @nagk05

11/07/2019 at 07:39AM

10
#275 - Melvin Cheung / @MelvinCheung

11/07/2019 at 12:40PM

10
#276 - Sebastien Premont / @spremont

11/07/2019 at 02:13PM

10
#277 - fritz_carraldo / @fritz_carraldo

11/08/2019 at 03:55AM

10
#278 - dogmeat / @dogmeat11

11/08/2019 at 04:28PM

10
#279 - alixwang / @wangjunal

11/09/2019 at 03:01PM

10
#280 - Justin Sermeno / @justinsermeno

11/09/2019 at 04:23PM

10
#281 - Daniel Klepacki / @daniel_klepacki

11/10/2019 at 01:44PM

10
#282 - 周之越 / @zhiyue_zhou

11/11/2019 at 02:27AM

10
#283 - kep / @kep20093456

11/12/2019 at 01:41PM

10
#284 - Zachary Neubert / @Mr_Saturn16347

11/12/2019 at 04:11PM

10
#285 - Joe Wroe / @JJWroe

11/13/2019 at 02:15PM

10
#286 - Brian D. Goad / @bbbco

11/13/2019 at 04:30PM

10
#287 - antoine mas / @aneomas

11/15/2019 at 01:49PM

10
#288 - Jangsea Park / @jangsea

11/15/2019 at 02:50PM

10
#289 - eshel / @EshelBM

11/16/2019 at 02:08AM

10
#290 - Nickolay Sukhanov / @__tau0

11/16/2019 at 07:05PM

10
#291 - Micael Jarniac / @MicaelJarniac

11/16/2019 at 07:53PM

10
#292 - Neal Lewis / @neal_lewis

11/16/2019 at 09:03PM

10
#293 - Henry / @henry_codes

11/17/2019 at 03:34AM

10
#294 - Jakub Wasilewski / @snarkysnaut

11/20/2019 at 08:57AM

10
#295 - Urquhart #SurrenderBill / @LostUrquhart

11/20/2019 at 11:40AM

10
#296 - Punk Rock Toot Toot / @welcometo2006

11/20/2019 at 07:54PM

10
#297 - Jaxsparrow / @alexfaivre25650

11/20/2019 at 10:03PM

10
#298 - Ido Silverwater / @IdoSilverwater

11/22/2019 at 01:53PM

10
#299 - Andreas Holck Høeg-P / @andreashhp

11/22/2019 at 02:31PM

10
#300 - afk / @Allan_FK

11/22/2019 at 04:11PM