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 638 remaining solutions by signing in and submitting your own entry
#639 Mayank Padshala / @MayankPadshala - Score: 112 - 07/22/19 @ 16:30
<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>;r<Right><Right>;<Down><Down><Down><Down><Down><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up>i<Right>;<Down><Right><Right><Right><Right><Right>;<Down>;<Right><Down><Down><Left><Left><Right><Right><Up><Up><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>;<Down><Down>;<Down>;:<BS><Esc>:wq<CR>

0 comments


Created by: @koern82

639 active golfers, 2263 entries

Leaderboard (lowest score wins):
10
#61 - Foo Bar / @foobar01123

06/26/2019 at 10:42AM

10
#62 - Johan Le Bray / @johanlebray

06/26/2019 at 12:34PM

10
#63 - Nathan Knox / @the_nathan_knox

06/26/2019 at 02:11PM

10
#64 - Test Account / @testycc

06/26/2019 at 04:54PM

10
#65 - Eric He / @EricHe_

06/26/2019 at 09:40PM

10
#66 - Kai.Li / @KaiLi19

06/27/2019 at 02:23AM

10
#67 - Sadot Cortés / @sadotcorts

06/28/2019 at 03:23AM

10
#68 - chris / @chris_linchen

06/28/2019 at 07:11AM

10
#69 - mkaminaga / @mkmng3

06/28/2019 at 07:47AM

10
#70 - kasper / @kasper72454971

06/29/2019 at 01:05PM

10
#71 - Dan Yeaw / @danyeaw

06/30/2019 at 01:59AM

10
#72 - Wizard_KumaChan / @Wizard_KumaChan

06/30/2019 at 11:04AM

10
#73 - Philip / @vCoRezZ

06/30/2019 at 06:35PM

10
#74 - Reuben Reyes / @rreubenreyes

07/01/2019 at 04:57AM

10
#75 - Slavujko / @Slavujko3

07/02/2019 at 06:57PM

10
#76 - Артур Кашаев / @KashaevArthur

07/03/2019 at 10:01AM

10
#77 - Giulio Bottari / @giuliobottari

07/04/2019 at 03:33AM

10
#78 - Julien Gormotte / @gormux

07/05/2019 at 08:35AM

10
#79 - ixf / @ixfdv

07/05/2019 at 05:53PM

10
#80 - David G0LD0 Forcier / @G0lD015

07/05/2019 at 09:07PM

10
#81 - Riley Shea / @RShea001

07/06/2019 at 12:39PM

10
#82 - Filipe Brandenburger / @filbranden

07/06/2019 at 05:01PM

10
#83 - Darren Firth / @DarrenSFirth

07/07/2019 at 05:03AM

10
#84 - Kvazhir / @kvazhir

07/07/2019 at 12:35PM

10
#85 - Gustavo Almeida / @gustaalmeidaws

07/07/2019 at 03:53PM

10
#86 - mocoma / @mocoma1

07/08/2019 at 10:35AM

10
#87 - Igor Yalovoy / @ylv_io

07/09/2019 at 05:33PM

10
#88 - TestaPerro / @TestaPerro

07/11/2019 at 06:36PM

10
#89 - Korgan / @Korgan36725554

07/13/2019 at 04:12PM

10
#90 - ゴエモン(俗稱).born / @_toku_san

07/17/2019 at 06:19AM