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

2990 active golfers, 10546 entries

Leaderboard (lowest score wins):
11
#931 - Wistan Chou / @wisty97

08/13/2019 at 10:42PM

11
#932 - Jake Treacher / @jaketreacher

08/14/2019 at 09:43AM

11
#933 - Milind Mantri / @MantriMilind

08/15/2019 at 07:04AM

11
#934 - Arnaud / @arnaudmm

08/16/2019 at 03:17PM

11
#935 - Hot Take / @hottake69

08/17/2019 at 08:32PM

11
#936 - Linfeng Li·李林峰 / @llinfeng

08/19/2019 at 01:32PM

11
#937 - b8406329 / @b8406329

08/19/2019 at 06:29PM

11
#938 - John Do / @JohnDo89513370

08/20/2019 at 08:51AM

11
#939 - monaqa / @mo_naqa

08/20/2019 at 02:39PM

11
#940 - Alexander Dikelsky / @ADikelsky

08/20/2019 at 06:58PM

11
#941 - Marco Mannucci / @markomannux

08/21/2019 at 11:58AM

11
#942 - Thomas Versteeg / @versteeg_t

08/21/2019 at 04:28PM

11
#943 - kevinski / @kevinsk30746831

08/22/2019 at 03:18PM

11
#944 - Ed Montana / @Ghostraqk

08/23/2019 at 01:39PM

11
#945 - LM / @LM50800723

08/23/2019 at 02:48PM

11
#946 - Lucas Lollobrigida / @llollobrigida_

08/23/2019 at 08:27PM

11
#947 - David Johnston / @nuts4nuts4nuts

08/23/2019 at 08:54PM

11
#948 - Simon Wilkinson / @simondwilkinson

08/23/2019 at 09:01PM

11
#949 - Tim Dean / @Tmdean

08/23/2019 at 09:28PM

11
#950 - Michael Prentiss / @mcprentiss

08/24/2019 at 01:42AM

11
#951 - GAUTAM V NAIK / @gautamnaik1994

08/24/2019 at 11:29AM

11
#952 - Emily Macon / @ET_Macon

08/24/2019 at 11:09PM

11
#953 - theBecwar / @thebecwar

08/25/2019 at 06:05PM

11
#954 - Scott Moore / @scottwillmoore

08/26/2019 at 12:11AM

11
#955 - 波波 / @sbob87

08/26/2019 at 02:26AM

11
#956 - Oleg Roshupkin / @jjjahson

08/27/2019 at 07:07PM

11
#957 - Christian / @paierlep

08/27/2019 at 07:23PM

11
#958 - John Meuser / @meuserj

08/27/2019 at 07:47PM

11
#959 - Ronald Bell / @rdbell

08/28/2019 at 12:05AM

11
#960 - ゆに / @lededex

08/28/2019 at 06:47PM