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

803 active golfers, 2844 entries

Leaderboard (lowest score wins):
15
#601 - Vinni Carlo Caños / @vinnicc

07/31/2019 at 02:30AM

15
#602 - Mike Hourahine / @mhourahine

07/31/2019 at 04:08AM

15
#603 - 那森 / @gewhersss

08/02/2019 at 06:19AM

15
#604 - Ozzy Walsh / @Novigradian

08/02/2019 at 09:07AM

15
#605 - dahara / @kuma_moooon

08/06/2019 at 03:17PM

15
#606 - HMSBoaty / @HMS_Boaty

08/08/2019 at 11:51AM

15
#607 - Tencent / @JiezhiG

08/09/2019 at 05:46AM

15
#608 - Jason Chen / @chezbgone

08/11/2019 at 10:06PM

15
#609 - David / @davidrapsey

08/18/2019 at 07:31AM

15
#610 - Le Tu Binh / @LeTuBinh1

08/19/2019 at 06:53AM

15
#611 - Levi / @thatguylevi

08/19/2019 at 02:52PM

15
#612 - andreshugo / @andreshugo6

08/23/2019 at 02:44PM

15
#613 - TheMagzuz / @DamMarkus

08/30/2019 at 08:52AM

15
#614 - Олександр Спажев / @spazhev

08/31/2019 at 05:32PM

15
#615 - Zack Golden / @snedlog

09/08/2019 at 01:16PM

15
#616 - bakusuta / @bakusuta3

09/09/2019 at 06:52AM

15
#617 - schlecky / @schlecky3

09/10/2019 at 01:37PM

15
#618 - Clement Thomas / @clement1289

09/12/2019 at 07:30AM

15
#619 - Michel Onwordi / @lupo342

09/14/2019 at 08:10PM

15
#620 - Riftere / @riftere11

09/14/2019 at 08:44PM

15
#621 - Jonathan Lozinski / @jlozinski

09/18/2019 at 12:18PM

15
#622 - Bennett / @bennettbackward

09/19/2019 at 03:28AM

15
#623 - A / @Tower_1980

09/21/2019 at 02:14PM

15
#624 - Wojciech Jurkowski / @yierzy

09/22/2019 at 07:27PM

16
#625 - Aleksa Zdravkovic / @zdravce98

06/04/2019 at 06:26PM

16
#626 - filippo facioni / @filipeisho

06/04/2019 at 09:31PM

16
#627 - Fabien C. / @vaga_io

06/11/2019 at 03:28PM

16
#628 - John M Devin / @John_Devin

06/16/2019 at 10:12PM

16
#629 - Dominique M. / @19cupsofcoffee

06/17/2019 at 12:09AM

16
#630 - Jack Corley / @JackCorley12

06/26/2019 at 01:45AM