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

1670 active golfers, 6246 entries

Leaderboard (lowest score wins):
31
#1621 - haltsmaul / @haltsma12520845

08/27/2019 at 01:32AM

31
#1622 - Andrea Segantini / @AndreaSegantin3

11/18/2019 at 12:20AM

31
#1623 - LukasK / @LukasK21233410

01/01/2020 at 11:30PM

31
#1624 - Yathusihan / @yathusihan

01/02/2020 at 05:15AM

31
#1625 - Username77177 / @username77177

01/17/2020 at 08:28PM

31
#1626 - Kevin Jung / @KevinJung15

01/25/2020 at 04:54PM

32
#1627 - Anh / @Anh87554000

06/21/2019 at 12:41AM

32
#1628 - Humber Aquino / @goku2

10/10/2019 at 02:58AM

33
#1629 - Brian / @atav32

08/31/2019 at 12:29AM

33
#1630 - Mer / @missmer_

10/08/2019 at 07:58AM

33
#1631 - PlayWithTom / @TomWithPlay

01/26/2020 at 12:39AM

34
#1632 - julio marins / @AJ07mm

09/09/2019 at 04:38PM

34
#1633 - Albert Hofmann / @JustCaptcha

11/17/2019 at 09:32AM

34
#1634 - Helder / @helderg94

12/12/2019 at 03:26PM

34
#1635 - 이경룡 / @smartman1996

02/18/2020 at 10:51AM

35
#1636 - Doran Martinez / @doran_martinez

08/27/2019 at 07:43PM

37
#1637 - Felix Mo / @felixmo

07/28/2019 at 11:03PM

37
#1638 - Gomez / @poster_eco

11/12/2019 at 03:20AM

38
#1639 - Rocela Durazo / @roseliux

10/21/2019 at 05:41PM

38
#1640 - sai@ええんやで。 / @s_dinosaur1128

10/24/2019 at 09:22AM

38
#1641 - Tobias Barendt / @TBarendt

01/10/2020 at 10:46PM

38
#1642 - Michael / @thscuriousquest

02/20/2020 at 02:28AM

40
#1643 - Idan Korenblum / @idankor

11/08/2019 at 02:14PM

43
#1644 - 謝晉凡 / @typebrook

06/09/2019 at 04:38AM

44
#1645 - Sebastian Thomas / @SebastianTh0mas

08/28/2019 at 10:56AM

44
#1646 - Christoper Glenn / @CToto93

12/16/2019 at 09:12PM

45
#1647 - vimgolfacct / @vimgolfacct

06/20/2019 at 12:16AM

45
#1648 - Theodore Tsivranidis / @tTsivran

12/03/2019 at 03:44AM

48
#1649 - Kirill Chuyanov / @KirillChuyanov

02/11/2020 at 06:15PM

49
#1650 - Duarte O.C⚡️ / @duarteocarmo

10/11/2019 at 05:41PM