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
#511 - r4d1um / @r4d1um

05/12/2020 at 05:59PM

10
#512 - Ciaran Sundborg / @intrntsmostholy

05/12/2020 at 06:00PM

10
#513 - Kevin Keefe / @KevinKeefe5

05/14/2020 at 02:31AM

10
#514 - thejojo87 / @thejojo1987

05/14/2020 at 12:09PM

10
#515 - Derrick Anderson - Solstice / @DerrickSolstice

05/14/2020 at 09:37PM

10
#516 - dani0854 / @dani08541

05/16/2020 at 09:24PM

10
#517 - Henry / @hqin2011

05/17/2020 at 08:47AM

10
#518 - albalitz / @_albalitz

05/18/2020 at 11:38AM

10
#519 - Andreas Buhr / @andreas_buhr

05/19/2020 at 02:29PM

10
#520 - pady. 🇪🇺 @hundertzwoelf@sueden.social / @hundertzwoelf_

05/20/2020 at 03:04PM

10
#521 - NGM / @gmnimrod1

05/21/2020 at 10:04AM

10
#522 - 于吉星 / @fishermryn

05/21/2020 at 11:12AM

10
#523 - lpf / @yurisses

05/21/2020 at 05:15PM

10
#524 - 王有铭 / @wangyouming1209

05/22/2020 at 08:51AM

10
#525 - Sheng Xi / @shenghsi

05/23/2020 at 06:25AM

10
#526 - Commence Corporation / @CommenceCorp

05/23/2020 at 12:15PM

10
#527 - Dirty Harry / @TateDirty

05/23/2020 at 07:28PM

10
#528 - Andy / @ayy_ess_

05/23/2020 at 10:53PM

10
#529 - Finlay McAfee / @finsqm

05/25/2020 at 07:28AM

10
#530 - Prabhakar Chaudhary / @Prabhak04186807

05/26/2020 at 02:17AM

10
#531 - madfrog54321 / @madfrog54321

05/26/2020 at 09:33PM

10
#532 - Adam Stephen / @2_71828

05/27/2020 at 05:59AM

10
#533 - Felix Fritz / @geigenmusikant

05/27/2020 at 01:52PM

10
#534 - Ryan McNamara / @MadDogMcNamara

05/28/2020 at 05:09PM

10
#535 - nick / @Xp_Bar

05/28/2020 at 06:10PM

10
#536 - Julius / @cShortForC

05/29/2020 at 04:40PM

10
#537 - Fluidjax / @fluidjax

05/29/2020 at 09:12PM

10
#538 - Cesar Flores / @cesar7f

05/30/2020 at 04:39AM

10
#539 - speisz / @speiszc

05/30/2020 at 09:55PM

10
#540 - Dmitry Yarikov / @DmitryYarikov

05/31/2020 at 08:45AM