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
#601 - Владек / @escept1c

08/12/2020 at 02:04AM

10
#602 - Cao Van Bi / @CaoVanBi235

08/13/2020 at 01:57AM

10
#603 - santrupta mishra / @talkedgrain8

08/13/2020 at 02:36PM

10
#604 - Marco Selvi / @macselvi

08/14/2020 at 05:47PM

10
#605 - Muhsin AbdulMohammed / @muhsin____

08/16/2020 at 04:57PM

10
#606 - Theo Sarrazin / @tshaero

08/20/2020 at 06:47AM

10
#607 - Champii Akronym / @ChampiiPwet

08/21/2020 at 12:35AM

10
#608 - Łukasz Kadłubowski / @LAKadlubowski

08/21/2020 at 04:46AM

10
#609 - Oben Özgür / @Obenozgur

08/24/2020 at 03:10PM

10
#610 - fenn.stefan@gmail.com / @FennStefan

08/25/2020 at 11:45AM

10
#611 - RockerZZY / @rocker_zzy

08/26/2020 at 12:54PM

10
#612 - Udbhav Muthakana / @udbhavm_

08/27/2020 at 01:15AM

10
#613 - teo / @TeofilC

08/29/2020 at 04:30PM

10
#614 - Menaal Cochran / @CochranMenaal

08/29/2020 at 07:31PM

10
#615 - Camilo A. Matajira / @CamiloMatajira

08/29/2020 at 07:45PM

10
#616 - Mike Rosseel / @mrosseel

08/29/2020 at 11:12PM

10
#617 - cosh / @coshxx

08/30/2020 at 10:00AM

10
#618 - Skyler Dong / @skylerdong

08/30/2020 at 07:34PM

10
#619 - Hardik Upadhyay / @HardikU84218026

09/01/2020 at 08:43AM

10
#620 - Aaron Cooley / @acoolz

09/02/2020 at 04:49AM

10
#621 - Oartapnag / @praveer_n

09/02/2020 at 01:38PM

10
#622 - akouryy / @akouryy1

09/05/2020 at 04:50AM

10
#623 - yhgolf / @yhgolf1

09/05/2020 at 02:43PM

10
#624 - kofls / @kofls4

09/06/2020 at 11:11AM

10
#625 - FunkyKoval / @FunkyKoval10

09/06/2020 at 01:26PM

10
#626 - HarrisonSGolf / @HarrisonSGolf1

09/06/2020 at 08:42PM

10
#627 - alrito / @alrito6

09/06/2020 at 10:55PM

10
#628 - 刘宏亮 / @AkeyCoy

09/07/2020 at 04:06PM

10
#629 - M / @M88566443

09/08/2020 at 06:50PM

10
#630 - Piotr Kaznowski / @kaznowski

09/13/2020 at 11:17AM