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


#3069 nickGPT / @nickandbro - Score: 183 - 08/24/24 @ 15:39
$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

3069 active golfers, 10876 entries

Leaderboard (lowest score wins):
10
#1 - John Braxler / @braxler

06/04/2019 at 03:38PM

10
#2 - Jon Krause / @jkrause314

06/04/2019 at 10:41PM

10
#3 - james_bunch / @james_bunch

06/05/2019 at 01:28AM

10
#4 - AndrzejWasowski@scholar.social 🌻 🕊️ / @AndrzejWasowski

06/05/2019 at 11:05AM

10
#5 - James Whitlock / @Keitarusm

06/05/2019 at 02:45PM

10
#6 - "Smylers" / @Smylers2

06/05/2019 at 08:59PM

10
#7 - serent / @serent

06/05/2019 at 09:36PM

10
#8 - Chris Allen / @ChrisAllenUSA

06/05/2019 at 10:58PM

10
#9 - Tom ten Thij / @eco_coder

06/06/2019 at 09:27AM

10
#10 - deurzen / @devrzen

06/06/2019 at 09:59AM

10
#11 - Ben M / @Sweet_Scientist

06/06/2019 at 10:03AM

10
#12 - Frank / @fvbever

06/06/2019 at 03:00PM

10
#13 - Chris Conte / @chriscconte

06/06/2019 at 05:13PM

10
#14 - Jerry Wu / @AzureSpectra

06/06/2019 at 05:29PM

10
#15 - BunFluffman / @BFluffman

06/06/2019 at 07:09PM

10
#16 - Fernando Motta / @Fmmotta01

06/06/2019 at 08:20PM

10
#17 - kenneth foster / @kennethfoster12

06/06/2019 at 08:47PM

10
#18 - Thomas Vigouroux / @ThomasVigourou4

06/06/2019 at 09:06PM

10
#19 - Sæther / @baltre1

06/06/2019 at 10:26PM

10
#20 - Malcolm Ramsay / @malramsay64

06/07/2019 at 03:09AM

10
#21 - Alex Yu / @sixianyu

06/07/2019 at 04:51AM

10
#22 - dtjong / @dtjong2

06/07/2019 at 05:19AM

10
#23 - René Hansen / @rhardih

06/07/2019 at 09:02AM

10
#24 - excalipoor / @pawlrus

06/07/2019 at 10:02AM

10
#25 - Andreas Bolstad / @andreasblstd

06/07/2019 at 11:33AM

10
#26 - evimgolf / @evimgolf

06/07/2019 at 12:49PM

10
#27 - Rwithik Manoj / @RwithikM

06/07/2019 at 01:35PM

10
#28 - Eirik Furuseth / @heplaphon

06/07/2019 at 02:01PM

10
#29 - Evans Code Rants / @EvansCodeRants

06/07/2019 at 02:11PM

10
#30 - Lee Saville / @LeeSaville

06/07/2019 at 10:45PM