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

1177 active golfers, 4365 entries

Leaderboard (lowest score wins):
10
#271 - Matt Aschmann / @ma7hatter

10/31/2019 at 04:51PM

10
#272 - GrimmT / @GrimmT10

11/01/2019 at 08:41AM

10
#273 - CF / @CF42231856

11/04/2019 at 01:56PM

10
#274 - Апанович Данил / @dvapan

11/06/2019 at 08:57AM

10
#275 - Josh Cummings / @jcummingsdesign

11/07/2019 at 01:04AM

10
#276 - 永森 / @nagk05

11/07/2019 at 07:39AM

10
#277 - Melvin Cheung / @MelvinCheung

11/07/2019 at 12:40PM

10
#278 - Sebastien Premont / @spremont

11/07/2019 at 02:13PM

10
#279 - fritz_carraldo / @fritz_carraldo

11/08/2019 at 03:55AM

10
#280 - dogmeat / @dogmeat11

11/08/2019 at 04:28PM

10
#281 - alixwang / @wangjunal

11/09/2019 at 03:01PM

10
#282 - Justin Sermeno / @justinsermeno

11/09/2019 at 04:23PM

10
#283 - Daniel Klepacki / @daniel_klepacki

11/10/2019 at 01:44PM

10
#284 - 周之越 / @zhiyue_zhou

11/11/2019 at 02:27AM

10
#285 - kep / @kep20093456

11/12/2019 at 01:41PM

10
#286 - Zachary Neubert / @Mr_Saturn16347

11/12/2019 at 04:11PM

10
#287 - Joe Wroe / @JJWroe

11/13/2019 at 02:15PM

10
#288 - Brian D. Goad / @bbbco

11/13/2019 at 04:30PM

10
#289 - antoine mas / @aneomas

11/15/2019 at 01:49PM

10
#290 - Jangsea Park / @jangsea

11/15/2019 at 02:50PM

10
#291 - eshel / @EshelBM

11/16/2019 at 02:08AM

10
#292 - Nickolay Sukhanov / @__tau0

11/16/2019 at 07:05PM

10
#293 - Micael Jarniac / @MicaelJarniac

11/16/2019 at 07:53PM

10
#294 - Neal Lewis / @neal_lewis

11/16/2019 at 09:03PM

10
#295 - Henry / @henry_codes

11/17/2019 at 03:34AM

10
#296 - Jakub Wasilewski / @snarkysnaut

11/20/2019 at 08:57AM

10
#297 - Urquhart #SurrenderBill / @LostUrquhart

11/20/2019 at 11:40AM

11
#298 - Benoit Benoit / @Benoit_Tgt

06/04/2019 at 09:00AM

11
#299 - Saki Gw / @Sakigw

06/04/2019 at 09:15AM

11
#300 - albalitz / @_albalitz

06/04/2019 at 12:46PM