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):
11
#961 - Marcin Krajewski / @mkrajewski_

08/28/2019 at 08:53PM

11
#962 - sundeep routhu / @sundeep12005

08/29/2019 at 02:07PM

11
#963 - Brice Letcher / @bricoletc

08/29/2019 at 07:28PM

11
#964 - Rational Beast / @rationalbeast_

08/29/2019 at 09:16PM

11
#965 - chriscian / @christianfarani

08/30/2019 at 05:22AM

11
#966 - S-YOU / @__s_you

08/30/2019 at 03:22PM

11
#967 - じんぺー / @jinpei0908

08/31/2019 at 07:51AM

11
#968 - asdasd1337 / @asdasd13372

08/31/2019 at 08:24PM

11
#969 - Bill Ruddock / @biinari

08/31/2019 at 10:00PM

11
#970 - greengreen / @greengr09073862

09/01/2019 at 01:51PM

11
#971 - rg thomas / @rgt47

09/02/2019 at 01:07AM

11
#972 - darcy / @darcysail

09/02/2019 at 02:59AM

11
#973 - Jonghyun Yun / @JonghyunYun

09/02/2019 at 03:18AM

11
#974 - Aioriya / @AioriyaDonk

09/02/2019 at 11:38PM

11
#975 - ░C░o░o░p░e░r░ ░L░u░c░e░ / @16cluce

09/04/2019 at 05:11AM

11
#976 - Adam Anderson / @EspressoCoder

09/04/2019 at 01:51PM

11
#977 - Kirsten Nordine / @kirsten_nordine

09/05/2019 at 03:24AM

11
#978 - 김형창 / @uVmEMZsCgcYvqZi

09/05/2019 at 09:25AM

11
#979 - Baine Wedlock / @BaineWedlock

09/05/2019 at 02:04PM

11
#980 - Zach Ingbretsen / @ZIngbretsen

09/06/2019 at 11:39AM

11
#981 - Christopher Weyand / @swordman378

09/06/2019 at 03:20PM

11
#982 - Hans Lidiki / @HLidiki

09/07/2019 at 04:38PM

11
#983 - A / @777Android777

09/08/2019 at 06:40PM

11
#984 - Tosiaki / @Tosiaki1

09/08/2019 at 10:19PM

11
#985 - Jose Soto / @JoseCanHelp

09/09/2019 at 02:02AM

11
#986 - Alexander L. / @Lexol4s

09/09/2019 at 02:09PM

11
#987 - Daniel Beck / @daniel_beck_il

09/09/2019 at 03:50PM

11
#988 - Matt Walker / @MWers

09/09/2019 at 10:01PM

11
#989 - Vladislav Ganshin / @ganshin_vlad

09/10/2019 at 07:26AM

11
#990 - Yabūchi Takeshi / @WhiteKyoto

09/10/2019 at 08:24AM