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

1177 active golfers, 4365 entries

Leaderboard (lowest score wins):
11
#301 - Tinko Minko / @tandikula

06/04/2019 at 05:03PM

11
#302 - golf_throwaway / @GolfThrowaway

06/04/2019 at 05:45PM

11
#303 - Kamil Rocki / @rockikamil

06/04/2019 at 08:04PM

11
#304 - Richard Schneeman 🤠 / @schneems

06/05/2019 at 02:10AM

11
#305 - a60068 / @a60068

06/05/2019 at 01:31PM

11
#306 - kelaktaa / @kelaktaa

06/05/2019 at 04:08PM

11
#307 - JonasS / @jonas42s

06/05/2019 at 04:30PM

11
#308 - Valacar / @valacar

06/06/2019 at 03:47AM

11
#309 - Joo Ming / @JooMingJoo

06/06/2019 at 08:45AM

11
#310 - Petter Wahlman / @badeip

06/06/2019 at 09:32AM

11
#311 - wanghbxxxx / @wanghbxxxx

06/06/2019 at 10:16AM

11
#312 - Davey Struijk / @daveystruijk

06/06/2019 at 10:56AM

11
#313 - Slawek S / @Slawek_Sss

06/06/2019 at 11:20AM

11
#314 - Matthew Heaton / @MatthewHeaton17

06/06/2019 at 03:18PM

11
#315 - Johannes / @joka253

06/06/2019 at 04:10PM

11
#316 - Jonathan Letham / @JonathanLetham

06/06/2019 at 04:13PM

11
#317 - Rafael Gumieri / @rgumieri

06/06/2019 at 04:27PM

11
#318 - Andilutten / @Andilutten1

06/06/2019 at 04:49PM

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

06/06/2019 at 06:21PM

11
#320 - Alan Warren / @A1anWarren

06/06/2019 at 06:42PM

11
#321 - David / @Liimero

06/06/2019 at 07:00PM

11
#322 - Jonathan / @jmcphers

06/06/2019 at 07:14PM

11
#323 - Tyler Wilcock / @tylerwilcock

06/06/2019 at 08:30PM

11
#324 - mark / @feltnermj

06/06/2019 at 08:31PM

11
#325 - Cookie4D / @Cookie4D1

06/06/2019 at 08:42PM

11
#326 - Billy / @Billy67965753

06/06/2019 at 10:02PM

11
#327 - Kevin Ushey / @kevin_ushey

06/06/2019 at 10:21PM

11
#328 - Michał Łowicki / @mlowicki

06/06/2019 at 11:09PM

11
#329 - Ari Sweedler / @Adsweed

06/07/2019 at 12:07AM

11
#330 - うおお / @uoo38

06/07/2019 at 12:40AM