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

803 active golfers, 2844 entries

Leaderboard (lowest score wins):
14
#571 - yangtianrui / @yangtianrui1

09/02/2019 at 11:48AM

14
#572 - Adam Bumpus / @bumpus_adam

09/03/2019 at 04:47PM

14
#573 - JavaScript Joe / @jsjoeio

09/05/2019 at 12:37AM

14
#574 - Ole / @Ole_Lnkoje

09/15/2019 at 03:06PM

14
#575 - João Silva / @joaosilva155

09/16/2019 at 12:21PM

15
#576 - Pablo P Varela / @pablopunk

06/06/2019 at 11:06AM

15
#577 - rich / @richardhanger

06/06/2019 at 02:19PM

15
#578 - extumblrnerdo / @extumblrnerdo

06/07/2019 at 07:04AM

15
#579 - mrrdl / @mrrdl5

06/07/2019 at 06:11PM

15
#580 - Gauthier B / @gogoprog

06/11/2019 at 10:54AM

15
#581 - Hans Aschenloher / @aschenloher

06/12/2019 at 07:36AM

15
#582 - Arnold Kell / @KellArnold

06/12/2019 at 10:48AM

15
#583 - MartinRAndersen / @MyrionSC2

06/12/2019 at 01:40PM

15
#584 - Mike / @Mike04212280

06/15/2019 at 03:00PM

15
#585 - Stefan Schneider / @hinogi

06/16/2019 at 05:26AM

15
#586 - Furopure / @furopure

06/19/2019 at 03:45AM

15
#587 - Giggles MacChumpsworth / @macchumpsworth

06/19/2019 at 04:23AM

15
#588 - Adam Wilson / @adamlemurwilson

06/21/2019 at 08:11PM

15
#589 - Andrew Tindall / @turngod

06/29/2019 at 09:14PM

15
#590 - wsg / @wsg31986835

07/04/2019 at 02:13PM

15
#591 - Kar Ming Chu / @KarMingChu

07/09/2019 at 04:35PM

15
#592 - Mitchell Hanberg / @mitchhanberg

07/12/2019 at 01:24AM

15
#593 - Emanuele Aliverti / @memeAliverti

07/12/2019 at 12:05PM

15
#594 - Alex Parmentier / @AlexIsInternet

07/20/2019 at 11:07PM

15
#595 - mateodif / @mateodif1

07/22/2019 at 05:46PM

15
#596 - Michael Elias / @mikowl

07/22/2019 at 11:40PM

15
#597 - Diego Navarro / @die_4001

07/23/2019 at 05:38PM

15
#598 - Jakob / @sucaml

07/26/2019 at 06:08PM

15
#599 - Enoch / @_enocht

07/28/2019 at 09:19PM

15
#600 - Dominik Przywara / @PrzywaraDominik

07/29/2019 at 09:12PM