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 224 remaining solutions by signing in and submitting your own entry
#225 Jessica Kraft / @JessicaKraft19 - Score: 66 - 06/26/19 @ 01:27
/1,4/$/:<BS>;<Left><Left><Left><Left>s<Right><Right><Right><Right><CR>:s/<BS><BS>1,4s/$/:<BS>;/<BS><BS>|<BS>\:<BS><BS>;/<CR>:1,<BS><BS>6,7s/$/;/<CR>:wq<CR>

0 comments


Created by: @koern82

225 active golfers, 790 entries

Leaderboard (lowest score wins):
11
#91 - Kevin Ushey / @kevin_ushey

06/06/2019 at 10:21PM

11
#92 - Michał Łowicki / @mlowicki

06/06/2019 at 11:09PM

11
#93 - Ari Sweedler / @Adsweed

06/07/2019 at 12:07AM

11
#94 - うおお / @uoo38

06/07/2019 at 12:40AM

11
#95 - Karl Rombauts / @KarlRombauts

06/07/2019 at 04:32AM

11
#96 - valeryan deux / @DeuxValeryan

06/07/2019 at 12:06PM

11
#97 - Gui Borges / @GuiBorg58625942

06/07/2019 at 01:36PM

11
#98 - Josh Levinson / @JLevNHV

06/07/2019 at 01:56PM

11
#99 - Erik Lindeborg / @ErikLindeborg

06/07/2019 at 02:04PM

11
#100 - Jess / @Jess74311450

06/07/2019 at 02:45PM

11
#101 - Shyam Padia / @thegeektherapy

06/07/2019 at 06:57PM

11
#102 - Derrick Gill / @DerrickGill15

06/08/2019 at 01:13AM

11
#103 - Clarence Cheong / @IBrightStudioI

06/08/2019 at 06:15AM

11
#104 - tottulf / @tottulf

06/08/2019 at 03:21PM

11
#105 - i_orykhivskyi / @i_orykh

06/08/2019 at 06:26PM

11
#106 - Graeme Smith / @InstaGraeme

06/08/2019 at 10:49PM

11
#107 - Ninja Knife / @iNinjaknife

06/08/2019 at 10:51PM

11
#108 - tPenguinLTG / @tpenguinltg

06/08/2019 at 11:03PM

11
#109 - Reportados123 / @reportados123

06/09/2019 at 12:24AM

11
#110 - Scott M M Jackson / @scottmmjackson

06/10/2019 at 03:46PM

11
#111 - Brandon Adams / @emidln

06/10/2019 at 10:40PM

11
#112 - Prashanth / @Prashanth157T

06/11/2019 at 03:52AM

11
#113 - ほた / @hota1024

06/11/2019 at 09:52AM

11
#114 - Mike Clark / @mikeclark729

06/11/2019 at 12:59PM

11
#115 - jeffstelmach / @jeffstelmach

06/11/2019 at 01:18PM

11
#116 - Roger / @RogerCreasy

06/11/2019 at 01:21PM

11
#117 - Charlie OConor / @charlieoconor

06/11/2019 at 08:56PM

11
#118 - Khoyobegenn / @Khoyobegenn

06/12/2019 at 01:09AM

11
#119 - will / @willpnw

06/12/2019 at 03:24AM

11
#120 - grace / @grcekh

06/12/2019 at 04:06AM