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

2497 active golfers, 8969 entries

Leaderboard (lowest score wins):
13
#1621 - majuscule / @majuscule13

09/24/2019 at 08:50PM

13
#1622 - Gabe Pohl-Zaretsky / @Gabe_PZ

09/26/2019 at 06:54PM

13
#1623 - Elton Kamami / @pixel_grid

09/27/2019 at 07:38PM

13
#1624 - Justin / @JustinVecchioni

10/02/2019 at 01:45AM

13
#1625 - Josefina Alconada / @jochiAlconada

10/03/2019 at 08:25AM

13
#1626 - Igor Czerwinski / @igoratron

10/04/2019 at 01:41PM

13
#1627 - Anton / @toxahak

10/10/2019 at 12:13PM

13
#1628 - steve bolo / @steve_bolo

10/11/2019 at 08:17PM

13
#1629 - Marc / @Fusselgesicht

10/13/2019 at 11:34PM

13
#1630 - Max Williams / @notmaxbutmax

10/15/2019 at 10:48PM

13
#1631 - malte0811 / @malte0811

10/16/2019 at 06:51PM

13
#1632 - Lie Ryan / @lieryan

10/18/2019 at 12:16PM

13
#1633 - Matt Deakos / @MattDeakos

10/22/2019 at 10:29PM

13
#1634 - Félix Pelletier / @YetAnotherFelix

11/03/2019 at 07:57PM

13
#1635 - FaeFeyFa / @fae_fey

11/06/2019 at 04:26AM

13
#1636 - Gianluca Scacco / @gscacco

11/09/2019 at 11:02AM

13
#1637 - Dylan Lutz / @DLutz_

11/16/2019 at 03:58PM

13
#1638 - Timo Böhm / @TimoBohm

11/24/2019 at 07:55PM

13
#1639 - zigford / @zigford_org

11/28/2019 at 01:01PM

13
#1640 - Aaron Harris / @TheJoyOfPython

12/01/2019 at 04:42PM

13
#1641 - johan wester / @wester87

12/17/2019 at 09:48PM

13
#1642 - ace_of_art_club / @aceofartclub1

12/18/2019 at 03:54PM

13
#1643 - うりぼー@エンジニア志望 / @uriuribobo1998

12/22/2019 at 06:22AM

13
#1644 - Tanner Hoelzel / @tannerhoelzel

12/24/2019 at 01:40AM

13
#1645 - 鏡崎ましろ / @KagamisakiMsr

12/26/2019 at 08:05AM

13
#1646 - Marian Minar (jr.) / @majamin

12/28/2019 at 12:11AM

13
#1647 - Øystein Walle / @oysteinwalle

01/09/2020 at 12:23PM

13
#1648 - Alexis Andersen / @AlexisKAndersen

01/09/2020 at 02:52PM

13
#1649 - Victor Chen / @VictorC89422342

01/09/2020 at 11:29PM

13
#1650 - nanikit / @nanik_it

01/16/2020 at 08:17AM