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

2632 active golfers, 9365 entries

Leaderboard (lowest score wins):
10
#571 - Dan / @nnmnsmmr

06/27/2020 at 04:42PM

10
#572 - Ming Dai / @MingDai2

06/29/2020 at 04:50PM

10
#573 - Florent (Flomyx) πŸ‡§πŸ‡ͺπŸ‡§πŸ‡ͺ / @SinergyTv

06/30/2020 at 12:24PM

10
#574 - ε€§ηŸ’ε…ƒζ΅· / @008Genkai

06/30/2020 at 06:16PM

10
#575 - Mats Faugli / @matsfaugli

07/03/2020 at 08:06AM

10
#576 - Reuben Narkwo / @reubwo

07/03/2020 at 11:44AM

10
#577 - HiJova / @Jova28190268

07/03/2020 at 12:43PM

10
#578 - PeiYingLiu / @PeiYing_Liu

07/03/2020 at 02:38PM

10
#579 - Johno / @JohnoPomerat

07/03/2020 at 09:51PM

10
#580 - Anton / @Zackushka

07/04/2020 at 08:53PM

10
#581 - cdan / @cdan

07/06/2020 at 10:17AM

10
#582 - Lucas Moon / @LucasMo01299826

07/07/2020 at 05:24AM

10
#583 - Leo / @weandowo

07/07/2020 at 08:34AM

10
#584 - artcha / @artushkevichs

07/08/2020 at 09:31AM

10
#585 - SardarJitensha / @SJitensha

07/08/2020 at 11:39AM

10
#586 - Zachary Noble / @znoble360

07/09/2020 at 01:02AM

10
#587 - Dane Summers / @dsummersl

07/12/2020 at 06:48PM

10
#588 - Dmitry Branitskiy / @b1azer

07/14/2020 at 04:36AM

10
#589 - Jonathan / @jonathannerat

07/17/2020 at 02:29PM

10
#590 - Artur Dumchev / @Liverm0r

07/18/2020 at 07:15PM

10
#591 - Saurabh / @Saurabh09299

07/19/2020 at 02:16PM

10
#592 - Benjamin Turner / @passionsplay

07/20/2020 at 09:59PM

10
#593 - Josivan Joestar πŸ‡ΊπŸ‡³πŸŒŽπŸš€ / @MedeirosJosivan

07/21/2020 at 05:59PM

10
#594 - Norman Liu / @normanwliu

07/25/2020 at 09:21PM

10
#595 - thejazzroot / @thejazzroot

07/26/2020 at 02:16PM

10
#596 - Steve Frost / @FrostSteveFrost

07/27/2020 at 01:40AM

10
#597 - Gergely Risko / @errge

07/28/2020 at 07:30PM

10
#598 - Xaver Fleer / @XaverFleer

08/01/2020 at 05:10PM

10
#599 - ぼとぼと / @boto_voto

08/02/2020 at 06:08AM

10
#600 - Tanzeel Kazi / @tanzeelkazi

08/06/2020 at 06:06PM