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

2622 active golfers, 9335 entries

Leaderboard (lowest score wins):
10
#541 - speisz / @speiszc

05/30/2020 at 09:55PM

10
#542 - Dmitry Yarikov / @DmitryYarikov

05/31/2020 at 08:45AM

10
#543 - nbspAD / @AdNbsp

05/31/2020 at 12:47PM

10
#544 - Lili Boi / @lili_boi

05/31/2020 at 07:25PM

10
#545 - Israr Khan / @isrark

05/31/2020 at 08:13PM

10
#546 - Robert Roman / @rrobert422

06/01/2020 at 09:14PM

10
#547 - LCY / @Chooneh

06/06/2020 at 04:49AM

10
#548 - MA Calero / @GaleonCalero

06/07/2020 at 05:30PM

10
#549 - Rene Ribaud / @Uggla_

06/07/2020 at 09:31PM

10
#550 - Simon Wydooghe / @simonwydooghe

06/09/2020 at 08:49PM

10
#551 - Jacob Shomstein / @jshoms

06/10/2020 at 03:36AM

10
#552 - Dan / @DanSharkey88

06/12/2020 at 12:45AM

10
#553 - Alex Lucchesi / @suarigata

06/12/2020 at 05:09AM

10
#554 - Jake / @Jake88567157

06/12/2020 at 11:19AM

10
#555 - pspencil / @pspencil

06/13/2020 at 02:39PM

10
#556 - adamvimgolf / @adamvimgolf

06/13/2020 at 04:19PM

10
#557 - hansim / @hanstartup

06/15/2020 at 04:51AM

10
#558 - Sergey Averkiev / @ExAnimoso

06/16/2020 at 02:21PM

10
#559 - Lakshitha Wijesinghe / @lakshithaww

06/17/2020 at 10:14PM

10
#560 - Ben Mayoras / @Mayorasaurus

06/18/2020 at 08:33PM

10
#561 - RaylanFox / @RaylanFox

06/19/2020 at 05:06AM

10
#562 - kcalbnodrog / @kcalbnodrog

06/19/2020 at 09:54PM

10
#563 - もりを / @morio_prog

06/20/2020 at 03:03AM

10
#564 - Matthew Diamant / @matthewdiamant

06/20/2020 at 07:51AM

10
#565 - EliTheCoder / @elithecoder

06/20/2020 at 04:39PM

10
#566 - ithirty / @ithirty4

06/22/2020 at 05:11PM

10
#567 - Karol Łukaszewicz / @Karolukaszewicz

06/23/2020 at 10:54AM

10
#568 - Will / @WillTakeLe

06/25/2020 at 05:20AM

10
#569 - Francesco De Rose / @fdierre

06/26/2020 at 08:42PM

10
#570 - mocihan / @mocihan

06/27/2020 at 03:39AM