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

976 active golfers, 3573 entries

Leaderboard (lowest score wins):
14
#691 - Andrew / @Andrew00584728

09/26/2019 at 12:31AM

14
#692 - Jonathan Medwig / @jmedwig

10/02/2019 at 06:14PM

14
#693 - TechBurgers / @TechBurgers

10/04/2019 at 01:57PM

14
#694 - Waylon Cude / @waylon531

10/09/2019 at 07:19PM

14
#695 - Juan Francisco Bertona / @Weed1an

10/11/2019 at 09:13AM

14
#696 - Yoogottam Khandelwal / @yoogottam

10/14/2019 at 05:06PM

14
#697 - Константин / @pillar_vandyke

10/17/2019 at 03:17AM

14
#698 - arsdragonfly / @l_dragonfly_l

10/17/2019 at 03:46AM

14
#699 - xjkhst / @xjkhst

10/19/2019 at 11:23AM

15
#700 - Pablo P Varela / @pablopunk

06/06/2019 at 11:06AM

15
#701 - rich / @richardhanger

06/06/2019 at 02:19PM

15
#702 - extumblrnerdo / @extumblrnerdo

06/07/2019 at 07:04AM

15
#703 - mrrdl / @mrrdl5

06/07/2019 at 06:11PM

15
#704 - Gauthier B / @gogoprog

06/11/2019 at 10:54AM

15
#705 - Hans Aschenloher / @aschenloher

06/12/2019 at 07:36AM

15
#706 - Arnold Kell / @KellArnold

06/12/2019 at 10:48AM

15
#707 - MartinRAndersen / @MyrionSC2

06/12/2019 at 01:40PM

15
#708 - Mike / @Mike04212280

06/15/2019 at 03:00PM

15
#709 - Stefan Schneider / @hinogi

06/16/2019 at 05:26AM

15
#710 - Furopure / @furopure

06/19/2019 at 03:45AM

15
#711 - Giggles MacChumpsworth / @macchumpsworth

06/19/2019 at 04:23AM

15
#712 - Adam Wilson / @adamlemurwilson

06/21/2019 at 08:11PM

15
#713 - Andrew Tindall / @turngod

06/29/2019 at 09:14PM

15
#714 - wsg / @wsg31986835

07/04/2019 at 02:13PM

15
#715 - Kar Ming Chu / @KarMingChu

07/09/2019 at 04:35PM

15
#716 - Mitchell Hanberg / @mitchhanberg

07/12/2019 at 01:24AM

15
#717 - Emanuele Aliverti / @memeAliverti

07/12/2019 at 12:05PM

15
#718 - Alex Parmentier / @AlexIsInternet

07/20/2019 at 11:07PM

15
#719 - mateodif / @mateodif1

07/22/2019 at 05:46PM

15
#720 - Michael Elias / @mikowl

07/22/2019 at 11:40PM