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
#121 - Lucas Javaudin / @LucasJavaudin

08/01/2019 at 07:32PM

10
#122 - flummox / @flummox16

08/02/2019 at 01:32AM

10
#123 - Andreas Hübner / @hyperbolicus140

08/03/2019 at 09:59AM

10
#124 - Chloe Adeline / @SimpleRabbit

08/04/2019 at 03:11AM

10
#125 - George Sofianos / @GeoSofianos

08/04/2019 at 07:45PM

10
#126 - Hubert Chen / @Chubbert21

08/04/2019 at 11:50PM

10
#127 - majestic sloth / @SamLlama

08/05/2019 at 07:34AM

10
#128 - Brian Li / @BriungRi

08/06/2019 at 07:02AM

10
#129 - 张忠荣 / @ZZRcooperation

08/06/2019 at 08:56AM

10
#130 - OldSchoolRunescapeGuide / @SmellsonM

08/06/2019 at 08:16PM

10
#131 - DrHobo / @_DrHobo_

08/07/2019 at 01:16AM

10
#132 - sooqua / @sooqua

08/07/2019 at 05:18AM

10
#133 - Martin Delille / @martinodelilo

08/07/2019 at 02:37PM

10
#134 - Hazel / @hzh_hong

08/07/2019 at 03:28PM

10
#135 - Matthias K / @outaphase

08/07/2019 at 09:06PM

10
#136 - ʀǟɦʊʟ ɮɦօʟǟ / @theRahulBhola

08/08/2019 at 03:00PM

10
#137 - NieDżejkob / @NieDzejkob

08/08/2019 at 10:45PM

10
#138 - Frank Malone / @FrankMa00268686

08/09/2019 at 01:11PM

10
#139 - Luiz Eduardo Amaral / @_luxedo

08/09/2019 at 04:12PM

10
#140 - Fritz Inf / @6360info

08/10/2019 at 02:01PM

10
#141 - 𝚃𝚒𝚝𝚘𝚞𝚊𝚗 𝚃𝚎𝚢𝚜𝚜𝚒𝚎𝚛 / @TitouanT_

08/10/2019 at 08:54PM

10
#142 - vimgolfuser123 / @vimgolfuser123

08/13/2019 at 03:07AM

10
#143 - Will Durney / @WillDurney

08/13/2019 at 06:39PM

10
#144 - Moritz Manner / @moritz_manner

08/13/2019 at 08:59PM

10
#145 - Zane / @Zane19489481

08/15/2019 at 02:54PM

10
#146 - nlfrocks / @nlfrocks

08/16/2019 at 05:36AM

10
#147 - Gasol Wu / @gasolwu

08/16/2019 at 08:09AM

10
#148 - 🐄 / @cow_emoji

08/16/2019 at 08:40PM

10
#149 - Adam Hartz / @awareofnow

08/17/2019 at 07:30PM

10
#150 - Malcolm Sharpe / @blueblimpms

08/19/2019 at 06:01PM