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
#91 - taka / @takaoutputblog

07/18/2019 at 02:02PM

10
#92 - James Raubenheimer / @jamzrob

07/18/2019 at 07:44PM

10
#93 - Philip Stephenson / @philip_iv

07/19/2019 at 08:38PM

10
#94 - Jure Zbontar / @jure_zbontar

07/20/2019 at 01:54AM

10
#95 - FreeTheBSD / @FreeTheBSD

07/20/2019 at 02:42AM

10
#96 - joseph.cheng / @josephc89207523

07/20/2019 at 03:11AM

10
#97 - Manan Khattar / @KhattarManan

07/20/2019 at 10:04AM

10
#98 - fisch@emacs / @WingsORC

07/20/2019 at 02:56PM

10
#99 - heppen / @heppen_He

07/22/2019 at 11:12AM

10
#100 - Joe Fahnestock🌵 / @Joecupojoe

07/22/2019 at 06:28PM

10
#101 - Rasmus Öhman Bruno / @rasmohman

07/22/2019 at 07:30PM

10
#102 - ぽんぽこ / @ponpoko2342

07/23/2019 at 09:58AM

10
#103 - Nishant Dania / @nishantdania

07/23/2019 at 12:17PM

10
#104 - band / @band26376522

07/24/2019 at 08:36PM

10
#105 - Tri Le / @Tri_Le

07/25/2019 at 11:00PM

10
#106 - Markus / @ARealAnnoyance

07/26/2019 at 03:26PM

10
#107 - Zhenkai W. / @Zhenkai_W

07/26/2019 at 04:01PM

10
#108 - matt.boyer / @mattboy54261877

07/26/2019 at 08:18PM

10
#109 - entitled millennial / @PythonBro

07/26/2019 at 09:23PM

10
#110 - kokiteru / @hommakoki

07/27/2019 at 04:59AM

10
#111 - Alex Warner / @AWarner_18

07/27/2019 at 01:32PM

10
#112 - Danny T / @son_of_torkel

07/28/2019 at 09:02PM

10
#113 - a1ph4 / @a1ph4g33k

07/29/2019 at 08:41AM

10
#114 - Himavanth Reddy / @Himavanth1909

07/29/2019 at 09:02AM

10
#115 - Mark / @markfilus

07/29/2019 at 05:55PM

10
#116 - Ron Holt / @ron_holt

07/30/2019 at 01:38AM

10
#117 - Hayden Wang / @HaydenWang2

07/30/2019 at 06:50AM

10
#118 - Harsha Nadimpalli / @Harsha_live

07/31/2019 at 06:02AM

10
#119 - XiaoXiaoLui / @XiaoXiaoLui1

07/31/2019 at 04:43PM

10
#120 - Turkey Man / @lvturkeyman

08/01/2019 at 05:21AM