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

2294 active golfers, 8274 entries

Leaderboard (lowest score wins):
10
#451 - manfred knapp / @fred_pooshka

03/20/2020 at 09:23PM

10
#452 - MrSunshineBug / @MrSunshineBug

03/21/2020 at 01:41PM

10
#453 - Kelvin Chaves / @_kelvincs

03/21/2020 at 05:42PM

10
#454 - Yan Xue / @_yxue

03/21/2020 at 08:56PM

10
#455 - Marco / @Marco24456514

03/21/2020 at 09:34PM

10
#456 - Robberechts Arne / @ArneRobberechts

03/22/2020 at 02:44PM

10
#457 - Omer Hamerman / @omergsr

03/22/2020 at 09:56PM

10
#458 - Nick Buser / @buser_nick

03/23/2020 at 12:25AM

10
#459 - Costel Radulescu / @_wizard_

03/23/2020 at 10:10PM

10
#460 - tinyfat / @tanghaijun12345

03/27/2020 at 09:33AM

10
#461 - koyumeishi / @koyumeishi_

03/27/2020 at 07:03PM

10
#462 - Patrick Baxter / @ZenAether

03/28/2020 at 05:30AM

10
#463 - Frank Harrison / @doublethefish

03/29/2020 at 02:21PM

10
#464 - Michael Buckley / @apolatg

03/29/2020 at 10:44PM

10
#465 - Jesse Test / @JesseTest15

03/30/2020 at 09:02PM

10
#466 - agricantare / @agricantare

03/31/2020 at 08:34AM

10
#467 - Вова Соколович / @vovasokoll

04/04/2020 at 03:51AM

10
#468 - Daniel Fleischman / @vimgolfdaniel

04/05/2020 at 08:25PM

10
#469 - Caio Marcelo / @CaioMCG

04/06/2020 at 02:25AM

10
#470 - Anon Y. Mous / @AnonYMo50660689

04/07/2020 at 10:09PM

10
#471 - せいほう / @FICSQF

04/08/2020 at 12:59AM

10
#472 - Samarjeet Singh / @thelehhman

04/09/2020 at 07:54AM

10
#473 - Kelvin Meyer / @Kelvin_Meyer15

04/10/2020 at 08:04AM

10
#474 - Atzz / @AtzzCokeK

04/11/2020 at 06:08AM

10
#475 - Moatvald / @moatvald

04/11/2020 at 02:08PM

10
#476 - edvrds / @edvrds

04/12/2020 at 08:43AM

10
#477 - Vinh Vu / @vinhhv94

04/12/2020 at 06:21PM

10
#478 - hanxuspg04 / @hanxuspg041

04/14/2020 at 08:28PM

10
#479 - vimmer / @vimmer14

04/15/2020 at 09:33PM

10
#480 - Sikker Rosendal / @srosendaldk

04/17/2020 at 11:59AM