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

2989 active golfers, 10545 entries

Leaderboard (lowest score wins):
10
#631 - Piotr Kaznowski / @kaznowski

09/13/2020 at 11:17AM

10
#632 - Mike Walker / @mikewalk

09/19/2020 at 12:14PM

10
#633 - Prashanth / @Prashanth157T

09/21/2020 at 05:15PM

10
#634 - as-night / @asnight2

09/23/2020 at 03:53PM

10
#635 - Jimmy / @Jimmy67669554

09/23/2020 at 07:11PM

10
#636 - Алексей Ковалев / @FrostMephi

09/23/2020 at 11:50PM

10
#637 - dotvimrc / @dotvimrc1

09/28/2020 at 06:56AM

10
#638 - Alexander Flick / @alexflick

09/28/2020 at 07:54PM

10
#639 - Arend Peter / @APCastelein

10/01/2020 at 01:00AM

10
#640 - Michael Castelein / @ichael11

10/01/2020 at 01:00AM

10
#641 - Jan Liu / @Jagsomarjan

10/03/2020 at 05:58PM

10
#642 - Nazrulla / @Nazrull37098421

10/04/2020 at 07:39AM

10
#643 - Sébastien Roccaserra / @sroccaserra

10/04/2020 at 12:15PM

10
#644 - Ashe Braum / @ashe_braum

10/06/2020 at 11:35AM

10
#645 - Ricardo Lima / @ricponteslima

10/06/2020 at 10:31PM

10
#646 - I made a video game ✨ / @startresse

10/07/2020 at 07:27PM

10
#647 - Michael Bui / @Miik4chu

10/09/2020 at 09:25AM

10
#648 - Carsano / @DamienFbn

10/09/2020 at 06:20PM

10
#649 - Franz Kirchhoff / @kirchhoff_f

10/09/2020 at 09:46PM

10
#650 - Hristo Kamenov / @KamenovHristo

10/10/2020 at 12:43PM

10
#651 - Herman Stavelin / @HsBruker

10/13/2020 at 08:53PM

10
#652 - Austin Scola / @vimgolfpro

10/14/2020 at 02:03AM

10
#653 - jonas brothers lover / @grossiau

10/14/2020 at 07:35PM

10
#654 - noam teyssier / @noamteyssier

10/15/2020 at 02:01AM

10
#655 - Dmitry Antonyuk / @dm_antonyuk

10/15/2020 at 07:27AM

10
#656 - Cameron / @cameronmalek

10/15/2020 at 11:13PM

10
#657 - MySelf / @okmslf

10/17/2020 at 08:07AM

10
#658 - Ramūnas Musteikis / @RamnasMusteiki1

10/17/2020 at 01:18PM

10
#659 - Hossein Yousefi 💙 / @u_hossein

10/20/2020 at 04:40PM

10
#660 - Cláudio Caseiro / @ccaseiro

10/20/2020 at 05:25PM