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

2632 active golfers, 9365 entries

Leaderboard (lowest score wins):
10
#421 - Rollo Jenkins / @rollo_jenkins

02/18/2020 at 11:59AM

10
#422 - aca / @aca20379681

02/19/2020 at 04:28PM

10
#423 - Strages / @Strages2k

02/22/2020 at 09:34PM

10
#424 - Owen Ki / @owen_ki_dev

02/23/2020 at 02:06AM

10
#425 - Mushan Yang / @mushanyoung

02/24/2020 at 10:33PM

10
#426 - David Hume / @djh95

02/25/2020 at 10:50PM

10
#427 - Patrick Bryan / @gadget086

02/26/2020 at 02:23AM

10
#428 - Scott Lee / @ureure

02/27/2020 at 11:46PM

10
#429 - Andre Cato / @DreBear800

02/29/2020 at 05:10PM

10
#430 - Matt Drover / @mdrover25

03/01/2020 at 02:21PM

10
#431 - countime / @countime1

03/04/2020 at 02:02AM

10
#432 - Muhammad Affan / @maqur5

03/04/2020 at 02:15PM

10
#433 - エターナル雑魚 / @eternalzako

03/07/2020 at 09:59AM

10
#434 - Fernando Serboncini / @fserb

03/07/2020 at 04:00PM

10
#435 - Karissa McKelvey / @okdistribute

03/09/2020 at 10:21PM

10
#436 - Sean Dewar / @seandewar

03/12/2020 at 05:06PM

10
#437 - NoniusSenior / @NoniusS

03/12/2020 at 09:05PM

10
#438 - Tomas / @Tombakas

03/14/2020 at 01:01AM

10
#439 - Andrea / @AndreaRguezFdez

03/14/2020 at 07:42PM

10
#440 - yar / @yar01921320

03/14/2020 at 11:33PM

10
#441 - giursino / @giursino1

03/15/2020 at 12:48PM

10
#442 - Alon Sandler / @AlonSandler

03/15/2020 at 05:57PM

10
#443 - 杜撰 / @NOrUixDzwW4BbCP

03/15/2020 at 06:42PM

10
#444 - samet ぷ / @jssamet

03/16/2020 at 10:57AM

10
#445 - noredigle / @noredigle

03/17/2020 at 05:13PM

10
#446 - John Doe / @JohnDoe77150954

03/18/2020 at 10:22PM

10
#447 - vicver09 / @vicver091

03/19/2020 at 01:41AM

10
#448 - Эдуард Грозный / @kolobosha1

03/19/2020 at 10:33PM

10
#449 - NGageMegaman / @NGageMegaman

03/20/2020 at 12:22AM

10
#450 - ちゅうい / @_chuyii

03/20/2020 at 01:03PM