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

803 active golfers, 2844 entries

Leaderboard (lowest score wins):
13
#541 - Stefan Krist / @nerdyness_sk

08/20/2019 at 07:33AM

13
#542 - Guillaume leon / @Le_Zappellin

08/25/2019 at 08:29AM

13
#543 - Abiral Khanal / @abir4l

08/26/2019 at 05:11AM

13
#544 - 2xRon / @2cdotRon

08/26/2019 at 02:32PM

13
#545 - Alan Martins Silva / @alanfortlink

09/12/2019 at 06:43PM

13
#546 - James Wheeler / @uw_jwheel88

09/14/2019 at 06:29PM

14
#547 - Just...That / @I_am_JustThat

06/04/2019 at 12:11PM

14
#548 - Mat / @matpbo

06/07/2019 at 06:32PM

14
#549 - Jouderian Junior / @jouderianjr

06/14/2019 at 02:25PM

14
#550 - Kamil Gwóźdź / @kamil_gwd

06/17/2019 at 01:31PM

14
#551 - Daniel Hakimian / @danrafhak

06/19/2019 at 08:24PM

14
#552 - Hans-Wilhelm / @hanswilw

06/21/2019 at 12:53PM

14
#553 - Mauricio Fierro / @_mfierro

06/25/2019 at 05:36AM

14
#554 - Hog of the Forsaken / @leonrobbins

06/28/2019 at 06:57AM

14
#555 - Ola / @Ola73745831

07/05/2019 at 08:48AM

14
#556 - Myungho Jung / @jung_myungho

07/14/2019 at 04:48AM

14
#557 - Thirdegree / @Thirdegree1

07/14/2019 at 06:46AM

14
#558 - Clayton Mullis / @ClayMullis

07/20/2019 at 05:47PM

14
#559 - Ewan Carr / @ewancarr

07/21/2019 at 12:14PM

14
#560 - Colin Liddle / @lid_col

07/25/2019 at 12:49AM

14
#561 - Jingbo Hu / @jingbo_hu

07/30/2019 at 07:18PM

14
#562 - Guillaume / @WeshGuillaume

08/06/2019 at 11:48PM

14
#563 - Chris Maher / @chrismaherthe

08/15/2019 at 01:59AM

14
#564 - vimgolfer / @vimgolfinger

08/19/2019 at 05:46PM

14
#565 - louis / @LouisJordan

08/22/2019 at 10:52AM

14
#566 - Charlie Pai / @charlie_pai

08/22/2019 at 11:03PM

14
#567 - Gourav Chawla / @TechDeviant

08/24/2019 at 04:28AM

14
#568 - Ben Oliver / @benoliver999

08/27/2019 at 07:22PM

14
#569 - 2018秋 / @yu9JKDTap5nbaRe

08/30/2019 at 11:52AM

14
#570 - Tim Guo / @notenough177

08/31/2019 at 02:36AM