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

2989 active golfers, 10545 entries

Leaderboard (lowest score wins):
10
#691 - pherapont / @pherapont1

12/12/2020 at 05:00PM

10
#692 - Ian Burgan / @IanBurgan

12/15/2020 at 11:42PM

10
#693 - justinhj / @justinhj

12/17/2020 at 04:23AM

10
#694 - 遅し / @pspe_ow_db

12/18/2020 at 12:14PM

10
#695 - doran / @doran89993520

12/21/2020 at 06:13AM

10
#696 - Brian :| / @Seeemplicity

12/21/2020 at 04:05PM

10
#697 - Schachmett / @schachmett

12/22/2020 at 11:20AM

10
#698 - Jung Yeon Park / @park_jungy

12/27/2020 at 07:46PM

10
#699 - pong / @mr_pongpong

12/28/2020 at 12:13AM

10
#700 - Kapildev Neupane / @KapildevNeupane

12/29/2020 at 03:22AM

10
#701 - sh-wayz / @WayzSh

12/30/2020 at 03:02AM

10
#702 - Jon Miller / @jmillxyz

01/02/2021 at 03:53AM

10
#703 - Henrique Malheiro / @rike09

01/02/2021 at 11:37PM

10
#704 - 유승우 / @A0ynCXsO226uayI

01/04/2021 at 03:15AM

10
#705 - Tony Buranzon / @therealTbunz

01/06/2021 at 06:05AM

10
#706 - A A A / @37fatos

01/06/2021 at 09:21PM

10
#707 - soppeldynga / @soppeldynga

01/09/2021 at 08:39PM

10
#708 - atsuhiko / @atsuhik40022188

01/11/2021 at 02:45PM

10
#709 - yxke / @_yxke

01/13/2021 at 07:13AM

10
#710 - Gokul Raj / @Gokul_Raj__

01/14/2021 at 04:46AM

10
#711 - Matthew Jurenka / @JurenkaMatthew

01/15/2021 at 07:08AM

10
#712 - Marion Oldman / @ThatBigCock

01/16/2021 at 12:24PM

10
#713 - notctsk / @notctsk

01/16/2021 at 01:41PM

10
#714 - Sergei Blinov / @awnion

01/17/2021 at 08:03AM

10
#715 - Michael / @linux478

01/18/2021 at 05:26PM

10
#716 - Horst / @Horst91706815

01/18/2021 at 05:40PM

10
#717 - Jan / @stekks

01/19/2021 at 04:40PM

10
#718 - Xiao Wangwang / @WangwangXiao

01/19/2021 at 05:36PM

10
#719 - siruichang / @Blessing13Si

01/20/2021 at 08:29AM

10
#720 - Tim W / @TheArchdukeTim

01/21/2021 at 01:52AM