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

2293 active golfers, 8271 entries

Leaderboard (lowest score wins):
10
#571 - Dan / @nnmnsmmr

06/27/2020 at 04:42PM

10
#572 - Ming Dai / @MingDai2

06/29/2020 at 04:50PM

10
#573 - Florent (Flomyx) 🇧🇪🇧🇪 / @SinergyTv

06/30/2020 at 12:24PM

10
#574 - 大矢元海 / @008Genkai

06/30/2020 at 06:16PM

10
#575 - Mats Faugli / @matsfaugli

07/03/2020 at 08:06AM

10
#576 - Reuben Narkwo / @reubwo

07/03/2020 at 11:44AM

10
#577 - HiJova / @Jova28190268

07/03/2020 at 12:43PM

10
#578 - PeiYingLiu / @PeiYing_Liu

07/03/2020 at 02:38PM

10
#579 - Johno / @JohnoPomerat

07/03/2020 at 09:51PM

10
#580 - Anton / @Zackushka

07/04/2020 at 08:53PM

10
#581 - cdan / @cdan

07/06/2020 at 10:17AM

10
#582 - Lucas Moon / @LucasMo01299826

07/07/2020 at 05:24AM

10
#583 - Leo / @weandowo

07/07/2020 at 08:34AM

10
#584 - artcha / @artushkevichs

07/08/2020 at 09:31AM

10
#585 - SardarJitensha / @SJitensha

07/08/2020 at 11:39AM

10
#586 - Zachary Noble / @znoble360

07/09/2020 at 01:02AM

10
#587 - Dane Summers / @dsummersl

07/12/2020 at 06:48PM

11
#588 - Benoit Benoit / @Benoit_Tgt

06/04/2019 at 09:00AM

11
#589 - Saki Gw / @Sakigw

06/04/2019 at 09:15AM

11
#590 - Tinko Minko / @tandikula

06/04/2019 at 05:03PM

11
#591 - golf_throwaway / @GolfThrowaway

06/04/2019 at 05:45PM

11
#592 - Kamil Rocki / @rockikamil

06/04/2019 at 08:04PM

11
#593 - Richard Schneeman 🤠 / @schneems

06/05/2019 at 02:10AM

11
#594 - a60068 / @a60068

06/05/2019 at 01:31PM

11
#595 - kelaktaa / @kelaktaa

06/05/2019 at 04:08PM

11
#596 - JonasS / @jonas42s

06/05/2019 at 04:30PM

11
#597 - Valacar / @valacar

06/06/2019 at 03:47AM

11
#598 - Joo Ming / @JooMingJoo

06/06/2019 at 08:45AM

11
#599 - Petter Wahlman / @badeip

06/06/2019 at 09:32AM

11
#600 - wanghbxxxx / @wanghbxxxx

06/06/2019 at 10:16AM