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

2989 active golfers, 10545 entries

Leaderboard (lowest score wins):
10
#721 - 蔡徐坤真是爱吃屎 / @Hashub7

01/23/2021 at 01:35PM

10
#722 - Darrin Mourer / @dmourer

01/25/2021 at 03:49PM

10
#723 - Gaston / @Gaston53635525

01/25/2021 at 10:30PM

10
#724 - Caleb Biddulph / @BiddulphCaleb

01/27/2021 at 03:38AM

10
#725 - Oleg / @Oleg36601324

01/27/2021 at 02:15PM

10
#726 - Mykola Kharkov / @mykola_kharkov

05/07/2021 at 10:27AM

10
#727 - m397 / @m39752809546

05/11/2021 at 11:27AM

10
#728 - Youngchan Lee / @edwardycl

06/09/2021 at 06:42AM

10
#729 - vim_maxter / @MaxterVim

07/01/2021 at 09:48AM

10
#730 - lydxn / @lydxn1

07/29/2021 at 02:10AM

10
#731 - wpr__ / @wpr____

07/30/2021 at 11:08PM

10
#732 - Max / @Max17868626

11/07/2021 at 12:21PM

10
#733 - Hydrazar / @hydrazar

11/16/2021 at 02:47PM

10
#734 - Flimsy Giraffe / @flimsy_giraffe

11/27/2021 at 11:58PM

10
#735 - pankace / @pankace_Frosted

03/03/2022 at 02:53PM

10
#736 - ff df / @ffdf93207177

04/18/2022 at 04:27AM

10
#737 - russellzhaomao / @russellzhaomao

05/28/2022 at 08:16AM

10
#738 - Alex / @AlexanderHeatl2

07/06/2022 at 10:35PM

10
#739 - Pham Tuan Anh / @anhpt379

07/10/2022 at 07:35AM

11
#740 - Benoit Benoit / @Benoit_Tgt

06/04/2019 at 09:00AM

11
#741 - Saki Gw / @Sakigw

06/04/2019 at 09:15AM

11
#742 - Tinko Minko / @tandikula

06/04/2019 at 05:03PM

11
#743 - golf_throwaway / @GolfThrowaway

06/04/2019 at 05:45PM

11
#744 - Kamil Rocki / @rockikamil

06/04/2019 at 08:04PM

11
#745 - Richard Schneeman 🤠 / @schneems

06/05/2019 at 02:10AM

11
#746 - a60068 / @a60068

06/05/2019 at 01:31PM

11
#747 - kelaktaa / @kelaktaa

06/05/2019 at 04:08PM

11
#748 - JonasS / @jonas42s

06/05/2019 at 04:30PM

11
#749 - Valacar / @valacar

06/06/2019 at 03:47AM

11
#750 - Joo Ming / @JooMingJoo

06/06/2019 at 08:45AM