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

2867 active golfers, 10209 entries

Leaderboard (lowest score wins):
30
#2791 - Brian Bugieda / @BBugieda

10/01/2020 at 06:35PM

31
#2792 - nogeel / @nogeel

08/23/2019 at 03:43PM

31
#2793 - haltsmaul / @haltsma12520845

08/27/2019 at 01:32AM

31
#2794 - Andrea Segantini / @AndreaSegantin3

11/18/2019 at 12:20AM

31
#2795 - LukasK / @LukasK21233410

01/01/2020 at 11:30PM

31
#2796 - Yathusihan / @yathusihan

01/02/2020 at 05:15AM

31
#2797 - Username77177 / @username77177

01/17/2020 at 08:28PM

31
#2798 - Kevin Jung / @KevinJung15

01/25/2020 at 04:54PM

31
#2799 - phil seol / @SeolPhil

03/18/2020 at 03:51AM

31
#2800 - Yi Wang / @turing4ever

05/28/2020 at 09:26PM

31
#2801 - yuhung / @koba_taiwan

12/25/2020 at 08:31AM

31
#2802 - 방일우 / @CD5PpB36ZR5kWtk

01/05/2021 at 05:01AM

31
#2803 - jfroffice / @jfroffice

01/13/2021 at 01:13PM

32
#2804 - Anh / @Anh87554000

06/21/2019 at 12:41AM

32
#2805 - Humber Aquino / @goku2

10/10/2019 at 02:58AM

32
#2806 - 莊秉澂 / @cYZAfEdeAPRsh7G

09/20/2020 at 06:45AM

33
#2807 - Brian / @atav32

08/31/2019 at 12:29AM

33
#2808 - Mer / @missmer_

10/08/2019 at 07:58AM

33
#2809 - PlayWithTom / @TomWithPlay

01/26/2020 at 12:39AM

33
#2810 - Himanshu Sharma / @smthnlikeu

04/26/2020 at 01:21AM

33
#2811 - Fernando Quant / @FernandoQuantRS

08/18/2020 at 07:44PM

34
#2812 - julio marins / @AJ07mm

09/09/2019 at 04:38PM

34
#2813 - Albert Hofmann / @JustCaptcha

11/17/2019 at 09:32AM

34
#2814 - Helder / @helderg94

12/12/2019 at 03:26PM

34
#2815 - Justin Anderson / @ChessUpdatesBot

01/11/2021 at 06:50PM

35
#2816 - Doran Martinez / @doran_martinez

08/27/2019 at 07:43PM

35
#2817 - fang. / @dfangshuo

05/31/2020 at 07:10PM

35
#2818 - Charlie Kruczko / @CharlieKruczko

09/07/2020 at 10:13PM

35
#2819 - kijete3127 / @kijete3127

12/13/2020 at 01:26PM

37
#2820 - Felix Mo / @felixmo

07/28/2019 at 11:03PM