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
#241 - tottulf / @tottulf

06/08/2019 at 03:21PM

11
#242 - i_orykhivskyi / @i_orykh

06/08/2019 at 06:26PM

11
#243 - Graeme Smith / @InstaGraeme

06/08/2019 at 10:49PM

11
#244 - Ninja Knife / @iNinjaknife

06/08/2019 at 10:51PM

11
#245 - tPenguinLTG / @tpenguinltg

06/08/2019 at 11:03PM

11
#246 - Reportados123 / @reportados123

06/09/2019 at 12:24AM

11
#247 - Scott M M Jackson / @scottmmjackson

06/10/2019 at 03:46PM

11
#248 - Brandon Adams / @emidln

06/10/2019 at 10:40PM

11
#249 - Prashanth / @Prashanth157T

06/11/2019 at 03:52AM

11
#250 - ほた / @hota1024

06/11/2019 at 09:52AM

11
#251 - Mike Clark / @mikeclark729

06/11/2019 at 12:59PM

11
#252 - jeffstelmach / @jeffstelmach

06/11/2019 at 01:18PM

11
#253 - Roger / @RogerCreasy

06/11/2019 at 01:21PM

11
#254 - Charlie OConor / @charlieoconor

06/11/2019 at 08:56PM

11
#255 - Khoyobegenn / @Khoyobegenn

06/12/2019 at 01:09AM

11
#256 - will / @willpnw

06/12/2019 at 03:24AM

11
#257 - grace / @grcekh

06/12/2019 at 04:06AM

11
#258 - itsadok / @itsadok

06/12/2019 at 05:09AM

11
#259 - Alexey Vyskubov / @avysk

06/12/2019 at 01:25PM

11
#260 - Mac Goever / @MacGoever

06/12/2019 at 07:52PM

11
#261 - 𝕛𝕓𝕣𝕠𝕨𝕟 / @Roguelazer

06/12/2019 at 11:27PM

11
#262 - zealotrush / @zealotrush

06/13/2019 at 01:43AM

11
#263 - Grzegorz Andrzejowski / @AndrzejowskiG

06/13/2019 at 09:35AM

11
#264 - Altafen_ / @Altafen1

06/14/2019 at 06:44AM

11
#265 - Andreas Nordahl / @andreasnordahl

06/14/2019 at 10:12AM

11
#266 - Frank Harrison / @doublethefish

06/15/2019 at 07:39AM

11
#267 - Simon Zeng / @KronicMan

06/15/2019 at 04:23PM

11
#268 - Gabriel Barta / @gbarta

06/17/2019 at 04:33AM

11
#269 - Ben / @ben_g_thomas

06/18/2019 at 04:57AM

11
#270 - Thomas / @TBonnin

06/18/2019 at 08:17AM