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 1176 remaining solutions by signing in and submitting your own entry
#1177 @-----{} / @DavidAr99288709 - Score: 183 - 09/05/19 @ 14:04
$i;<BS><Esc><Right><Right>I<Esc><Down><Down><Left><Left><Up><Up><Down><Down><Down><Down><Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Up><Right><Right><Right><Right><Right><Up><Up><Down><Up><Up><Up><Left><Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><CR><Up><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>i<Right>;<Down><Right><Right><Right><Right><Right>;<Down>l;<BS><BS>;<Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>;<Down><Down>;<Down>;<Esc>:wq!<CR>

0 comments


Created by: @koern82

1177 active golfers, 4365 entries

Leaderboard (lowest score wins):
10
#211 - David B. / @dblanken

09/30/2019 at 02:49PM

10
#212 - Black05burn / @Black05burn

09/30/2019 at 05:02PM

10
#213 - Christopher / @Rephiscorth

10/02/2019 at 07:21PM

10
#214 - Sverre Rakkenes / @_Snap_

10/03/2019 at 11:53AM

10
#215 - Sebastian / @diasitede

10/03/2019 at 03:18PM

10
#216 - Johnson Lu / @wanderlusteee

10/03/2019 at 03:39PM

10
#217 - Ashwin Menon / @IngridMorstrad

10/03/2019 at 09:57PM

10
#218 - Iulian Alexandru / @ialexandru04

10/04/2019 at 03:54PM

10
#219 - Yudi Matsuzake / @yudimatsuzake

10/04/2019 at 06:03PM

10
#220 - Tamás Kárándi / @tkarandi

10/06/2019 at 12:12AM

10
#221 - Lukas Turcani / @LTurcani

10/06/2019 at 11:51AM

10
#222 - Azimjon Ilkhomov / @ajilkhomov

10/06/2019 at 04:10PM

10
#223 - Guillaume Seren / @guillaumeseren

10/06/2019 at 07:09PM

10
#224 - Moje dzieje / @Moje_dzieje

10/06/2019 at 08:40PM

10
#225 - dahan / @dahan74265266

10/07/2019 at 03:52AM

10
#226 - Geert Smelt / @gasmelt

10/08/2019 at 01:11PM

10
#227 - Elizabeth / @sprinkles418

10/08/2019 at 03:52PM

10
#228 - Skywalker 666 / @MemeMasterXXI

10/09/2019 at 11:48PM

10
#229 - Aurélien Blicq / @AurelienBlicq

10/10/2019 at 10:00PM

10
#230 - rapan931 / @rapan931

10/11/2019 at 02:22AM

10
#231 - ntn / @ntn60340761

10/11/2019 at 08:34PM

10
#232 - Cillian Berragan / @cjberragan

10/11/2019 at 09:45PM

10
#233 - bluehand / @bluehan73169389

10/12/2019 at 04:17AM

10
#234 - Phu Ngo 🌐 / @PhuNgo_K

10/12/2019 at 06:30AM

10
#235 - kkscr / @kkscr1

10/12/2019 at 06:52PM

10
#236 - Matthias Wolf / @matz__e

10/12/2019 at 09:33PM

10
#237 - Lycal / @Lycal3

10/13/2019 at 09:41AM

10
#238 - tuck cursed on rerB / @19emtuck

10/13/2019 at 07:22PM

10
#239 - KlondikeBaer / @BaerKlondike

10/14/2019 at 05:31PM

10
#240 - Udalny / @Udalny1

10/14/2019 at 07:44PM