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

2294 active golfers, 8274 entries

Leaderboard (lowest score wins):
10
#511 - Matt DB / @MattDB12

05/11/2020 at 07:34PM

10
#512 - Jeff Cui / @jeffacce

05/12/2020 at 01:26PM

10
#513 - r4d1um / @r4d1um

05/12/2020 at 05:59PM

10
#514 - Ciaran Sundborg / @intrntsmostholy

05/12/2020 at 06:00PM

10
#515 - Kevin Keefe / @KevinKeefe5

05/14/2020 at 02:31AM

10
#516 - thejojo87 / @thejojo1987

05/14/2020 at 12:09PM

10
#517 - Derrick Anderson - Solstice / @DerrickSolstice

05/14/2020 at 09:37PM

10
#518 - dani0854 / @dani08541

05/16/2020 at 09:24PM

10
#519 - Henry / @hqin2011

05/17/2020 at 08:47AM

10
#520 - albalitz / @_albalitz

05/18/2020 at 11:38AM

10
#521 - Andreas Buhr / @andreas_buhr

05/19/2020 at 02:29PM

10
#522 - pady. 🇪🇺 🇩🇪 🇷🇴 / @hundertzwoelf_

05/20/2020 at 03:04PM

10
#523 - NGM / @gmnimrod1

05/21/2020 at 10:04AM

10
#524 - 于吉星 / @fishermryn

05/21/2020 at 11:12AM

10
#525 - lpf / @yurisses

05/21/2020 at 05:15PM

10
#526 - 王有铭 / @wangyouming1209

05/22/2020 at 08:51AM

10
#527 - Sheng Xi / @shenghsi

05/23/2020 at 06:25AM

10
#528 - Commence Corporation / @CommenceCorp

05/23/2020 at 12:15PM

10
#529 - Dirty Harry / @TateDirty

05/23/2020 at 07:28PM

10
#530 - Andy / @ayy_ess_

05/23/2020 at 10:53PM

10
#531 - Finlay l͓̽o͓̽c͓̽k͓̽e͓̽d͓̽d͓̽o͓̽w͓̽n͓̽ McAfee / @finsqm

05/25/2020 at 07:28AM

10
#532 - Prabhakar Chaudhary / @Prabhak04186807

05/26/2020 at 02:17AM

10
#533 - madfrog54321 / @madfrog54321

05/26/2020 at 09:33PM

10
#534 - Adam Stephen / @2_71828

05/27/2020 at 05:59AM

10
#535 - Felix Fritz / @geigenmusikant

05/27/2020 at 01:52PM

10
#536 - Ryan McNamara / @MadDogMcNamara

05/28/2020 at 05:09PM

10
#537 - nick / @Xp_Bar

05/28/2020 at 06:10PM

10
#538 - Julius / @cShortForC

05/29/2020 at 04:40PM

10
#539 - Fluidjax / @fluidjax

05/29/2020 at 09:12PM

10
#540 - Cesar Flores / @cesar7f

05/30/2020 at 04:39AM