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

797 active golfers, 2827 entries

Leaderboard (lowest score wins):
11
#211 - Petter Wahlman / @badeip

06/06/2019 at 09:32AM

11
#212 - wanghbxxxx / @wanghbxxxx

06/06/2019 at 10:16AM

11
#213 - Davey Struijk / @daveystruijk

06/06/2019 at 10:56AM

11
#214 - Slawek S / @Slawek_Sss

06/06/2019 at 11:20AM

11
#215 - Matthew Heaton / @MatthewHeaton17

06/06/2019 at 03:18PM

11
#216 - Johannes / @joka253

06/06/2019 at 04:10PM

11
#217 - Jonathan Letham / @JonathanLetham

06/06/2019 at 04:13PM

11
#218 - Rafael Gumieri / @rgumieri

06/06/2019 at 04:27PM

11
#219 - Andilutten / @Andilutten1

06/06/2019 at 04:49PM

11
#220 - *9vkZ{YP_XV[XCbNdmnT / @9vkzX

06/06/2019 at 06:21PM

11
#221 - Alan Warren / @A1anWarren

06/06/2019 at 06:42PM

11
#222 - David / @Liimero

06/06/2019 at 07:00PM

11
#223 - Jonathan / @jmcphers

06/06/2019 at 07:14PM

11
#224 - Tyler Wilcock / @tylerwilcock

06/06/2019 at 08:30PM

11
#225 - mark / @feltnermj

06/06/2019 at 08:31PM

11
#226 - Cookie4D / @Cookie4D1

06/06/2019 at 08:42PM

11
#227 - Billy / @Billy67965753

06/06/2019 at 10:02PM

11
#228 - Kevin Ushey / @kevin_ushey

06/06/2019 at 10:21PM

11
#229 - Michał Łowicki / @mlowicki

06/06/2019 at 11:09PM

11
#230 - Ari Sweedler / @Adsweed

06/07/2019 at 12:07AM

11
#231 - うおお / @uoo38

06/07/2019 at 12:40AM

11
#232 - Karl Rombauts / @KarlRombauts

06/07/2019 at 04:32AM

11
#233 - valeryan deux / @DeuxValeryan

06/07/2019 at 12:06PM

11
#234 - Gui Borges / @GuiBorg58625942

06/07/2019 at 01:36PM

11
#235 - Josh Levinson / @JLevNHV

06/07/2019 at 01:56PM

11
#236 - Erik Lindeborg / @ErikLindeborg

06/07/2019 at 02:04PM

11
#237 - Jess / @Jess74311450

06/07/2019 at 02:45PM

11
#238 - Shyam Padia / @thegeektherapy

06/07/2019 at 06:57PM

11
#239 - Derrick Gill / @DerrickGill15

06/08/2019 at 01:13AM

11
#240 - Clarence Cheong / @IBrightStudioI

06/08/2019 at 06:15AM