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

1177 active golfers, 4365 entries

Leaderboard (lowest score wins):
10
#151 - Malcolm Sharpe / @blueblimpms

08/19/2019 at 06:01PM

10
#152 - Bryan Enders / @B_Endersstocker

08/19/2019 at 09:11PM

10
#153 - Maxime Turquetil / @maturquetil

08/20/2019 at 05:52PM

10
#154 - Gautham Velchuru / @skaehalk

08/20/2019 at 11:08PM

10
#155 - Mario Olofo / @mario_olofo

08/22/2019 at 03:34AM

10
#156 - Stas Krul / @ironimus42

08/22/2019 at 09:49AM

10
#157 - averageRandomPerson / @averageRandomP1

08/22/2019 at 10:55PM

10
#158 - Oleg Skillup / @skill_up

08/23/2019 at 05:54PM

10
#159 - Simon Andermatt / @SimonAndermatt

08/23/2019 at 07:35PM

10
#160 - omahn / @omahn

08/23/2019 at 09:24PM

10
#161 - noisevoid / @noisevoid

08/24/2019 at 05:11AM

10
#162 - Márcio Santos / @m4rciosantos

08/24/2019 at 07:18PM

10
#163 - Daniel Rollins / @DanielJRollins

08/25/2019 at 07:24AM

10
#164 - Raymar Monte / @RaymarMonte

08/25/2019 at 02:02PM

10
#165 - David Ding / @gnidding

08/25/2019 at 06:12PM

10
#166 - blub / @agorilladriving

08/27/2019 at 01:49AM

10
#167 - Lukas Schmidt / @TheRealGeStar

08/27/2019 at 06:59AM

10
#168 - birdybirdbird / @birdybirdbird13

08/27/2019 at 12:58PM

10
#169 - freehaha / @freehaha

08/28/2019 at 04:18AM

10
#170 - JS / @jjohsan

08/28/2019 at 07:10AM

10
#171 - David Lignell / @davidlignell

08/28/2019 at 05:45PM

10
#172 - Andrew Blokzyl / @linuxKd

08/29/2019 at 02:27PM

10
#173 - ian / @ianbrault

08/29/2019 at 10:25PM

10
#174 - Doug Chan / @Coufu

08/30/2019 at 08:54PM

10
#175 - Jun Isaji / @Jisaji

08/31/2019 at 03:57PM

10
#176 - Алексей Кашуба / @Alex_Kashuba

08/31/2019 at 07:36PM

10
#177 - Vichaya Raksakunpani / @toonbcc

09/02/2019 at 07:27AM

10
#178 - ゴリラ@技術書典7 き47D / @gorilla0513

09/03/2019 at 01:30PM

10
#179 - Madelyn Freed / @EcoBummer

09/03/2019 at 09:26PM

10
#180 - Wade / @vvandy

09/03/2019 at 10:43PM