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

2262 active golfers, 8165 entries

Leaderboard (lowest score wins):
37
#2221 - Felix Mo / @felixmo

07/28/2019 at 11:03PM

37
#2222 - Gomez / @poster_eco

11/12/2019 at 03:20AM

38
#2223 - Rocela Durazo / @roseliux

10/21/2019 at 05:41PM

38
#2224 - sai@ええんやで。 / @s_dinosaur1128

10/24/2019 at 09:22AM

38
#2225 - Tobias Barendt / @TBarendt

01/10/2020 at 10:46PM

39
#2226 - elif bicer / @elifbicer1

06/05/2020 at 12:48AM

40
#2227 - Idan Korenblum / @idankor

11/08/2019 at 02:14PM

40
#2228 - mr vim golf / @vim_golf_b812e

05/18/2020 at 01:55PM

41
#2229 - scott mysliwy / @scott_mysliwy

06/02/2020 at 07:20AM

43
#2230 - Iago Trancón Barros / @iagotb

05/10/2020 at 10:25PM

44
#2231 - Sebastian Thomas / @SebastianTh0mas

08/28/2019 at 10:56AM

44
#2232 - Christoper Glenn / @CToto93

12/16/2019 at 09:12PM

45
#2233 - vimgolfacct / @vimgolfacct

06/20/2019 at 12:16AM

45
#2234 - Theodore Tsivranidis / @tTsivran

12/03/2019 at 03:44AM

45
#2235 - Yu Hang / @yuhangchan

05/12/2020 at 02:32PM

45
#2236 - QYang / @WQtYang

06/16/2020 at 05:21AM

48
#2237 - Kirill Chuyanov / @KirillChuyanov

02/11/2020 at 06:15PM

49
#2238 - Duarte O.C⚡️ / @duarteocarmo

10/11/2019 at 05:41PM

49
#2239 - Petros Kapakos / @dapetros

05/08/2020 at 06:08PM

50
#2240 - Philip Geurin / @philgeurin

08/26/2019 at 09:23PM

53
#2241 - Tako Tabak / @takotabak

10/24/2019 at 11:36AM

54
#2242 - David Irvine / @metaquestions

12/31/2019 at 10:19AM

58
#2243 - Rogin Farrer / @roginfarrer

06/16/2019 at 06:21PM

59
#2244 - 🙃 / @haruishi43

08/07/2019 at 11:26PM

62
#2245 - Stuart Rucker / @stuartrucker0

02/18/2020 at 09:41PM

64
#2246 - Dara Shorten / @DaraShorten

06/07/2019 at 01:03PM

66
#2247 - Jessica Kraft / @JessicaKraft19

06/26/2019 at 01:27AM

66
#2248 - Niek / @niek_sat

01/07/2020 at 02:30PM

68
#2249 - Myki Myke / @myke_myki

08/13/2019 at 09:06AM

68
#2250 - Josh Gruber / @Jevitate

01/23/2020 at 01:43AM