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

2365 active golfers, 8513 entries

Leaderboard (lowest score wins):
49
#2341 - Petros Kapakos / @dapetros

05/08/2020 at 06:08PM

50
#2342 - Philip Geurin / @philgeurin

08/26/2019 at 09:23PM

53
#2343 - Tako Tabak / @takotabak

10/24/2019 at 11:36AM

54
#2344 - David Irvine / @metaquestions

12/31/2019 at 10:19AM

58
#2345 - Rogin Farrer / @roginfarrer

06/16/2019 at 06:21PM

59
#2346 - 🙃 / @haruishi43

08/07/2019 at 11:26PM

62
#2347 - Stuart Rucker / @stuartrucker0

02/18/2020 at 09:41PM

64
#2348 - Dara Shorten / @DaraShorten

06/07/2019 at 01:03PM

66
#2349 - Jessica Kraft / @JessicaKraft19

06/26/2019 at 01:27AM

66
#2350 - Niek / @niek_sat

01/07/2020 at 02:30PM

68
#2351 - Myki Myke / @myke_myki

08/13/2019 at 09:06AM

68
#2352 - Josh Gruber / @Jevitate

01/23/2020 at 01:43AM

69
#2353 - Gennady Bal / @Bal_Gena

11/07/2019 at 01:10PM

72
#2354 - Jordan Von Strangle / @jordanburr22

11/20/2019 at 02:25PM

73
#2355 - 박선우 / @psw261

01/27/2020 at 07:21AM

75
#2356 - ClownJeff / @Cl0wn_Jeff

10/07/2019 at 05:38AM

77
#2357 - Muhao / @muhao0318

09/13/2019 at 09:42AM

80
#2358 - Duy Linh / @DuyLinh12080656

04/24/2020 at 02:53AM

90
#2359 - Anil Narayan / @AnilNarayan2013

07/09/2020 at 05:33AM

94
#2360 - Novachristmas / @Novacanoo

02/11/2020 at 06:54AM

112
#2361 - Mayank Padshala / @MayankPadshala

07/22/2019 at 04:30PM

118
#2362 - Mete yağcı / @metey17

06/13/2020 at 08:39PM

147
#2363 - Maximiliano Greco / @mmngreco

11/09/2019 at 08:38PM

175
#2364 - Mannuel Ferreira / @manidf

05/07/2020 at 04:29AM

183
#2365 - @-----{} / @DavidAr99288709

09/05/2019 at 02:04PM