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 795 remaining solutions by signing in and submitting your own entry
#796 @-----{} / @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

796 active golfers, 2824 entries

Leaderboard (lowest score wins):
11
#301 - wandering sol / @SunReyE

07/02/2019 at 07:18AM

11
#302 - vasyharan / @vasyharan

07/02/2019 at 06:58PM

11
#303 - Marcus Loo / @MarcusLoo1

07/03/2019 at 02:28AM

11
#304 - せいほう / @FICSQF

07/03/2019 at 02:43AM

11
#305 - garry quested / @GQuested

07/03/2019 at 09:29AM

11
#306 - Bruno / @ShadowDancer437

07/03/2019 at 08:00PM

11
#307 - Kevin Durand / @kdthefakemvp

07/03/2019 at 09:56PM

11
#308 - as-night / @asnight2

07/04/2019 at 02:08PM

11
#309 - Chester Yap / @Chest_ErYap

07/06/2019 at 04:03AM

11
#310 - たぬぽん / @eJYwMbymauWKF4B

07/06/2019 at 12:38PM

11
#311 - Karan Gajwani / @karangb

07/06/2019 at 02:27PM

11
#312 - Mihai Crăiță / @mihai_craita

07/06/2019 at 06:37PM

11
#313 - T A / @SirAviles

07/06/2019 at 10:50PM

11
#314 - Adam Stephen / @2_71828

07/07/2019 at 04:55PM

11
#315 - mout78 / @mout78

07/07/2019 at 09:12PM

11
#316 - Lingyu Yi / @LgxLingyu

07/08/2019 at 03:08AM

11
#317 - Petru-Armand Bancila / @petruarmand

07/08/2019 at 03:33AM

11
#318 - alphamethyl / @alphamethyl1

07/08/2019 at 04:13AM

11
#319 - BaffaloP 🐃🎨 / @bbaffalopp

07/08/2019 at 07:32PM

11
#320 - c0llision / @sh3llcode

07/09/2019 at 02:55PM

11
#321 - Etai Nativ / @enativ72

07/10/2019 at 06:05AM

11
#322 - Peter Demin / @peterdemin

07/10/2019 at 05:46PM

11
#323 - aurelian ardeleanu / @inquarto

07/10/2019 at 07:44PM

11
#324 - mag1cal.unic0rn / @unic0rn_mag1cal

07/11/2019 at 05:45AM

11
#325 - Neil Struthers / @struthersneil

07/11/2019 at 05:03PM

11
#326 - Sean Sullivan / @_seanyneutron

07/11/2019 at 05:22PM

11
#327 - Restroom Sounds / @RestroomSounds

07/12/2019 at 03:18AM

11
#328 - Adam Pollack / @apollack11

07/12/2019 at 10:39PM

11
#329 - pf / @pedrofreirex

07/13/2019 at 08:52PM

11
#330 - icicle / @icicle_freeze

07/14/2019 at 01:50PM