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
#181 - Joel Taylor / @joeltayl

09/05/2019 at 05:46PM

10
#182 - Rohan Verma / @rhnvrm

09/05/2019 at 08:46PM

10
#183 - Andac Safa / @SanDForcE94

09/06/2019 at 09:21AM

10
#184 - lucca augusto / @LuccaAugusto6

09/08/2019 at 12:41PM

10
#185 - Nathan Bendich / @neonb88

09/08/2019 at 01:59PM

10
#186 - spock900 / @spock9002

09/08/2019 at 03:08PM

10
#187 - Iggy / @iggredible

09/10/2019 at 03:55AM

10
#188 - bsjd / @bsjd

09/10/2019 at 12:03PM

10
#189 - npo / @npo19645133

09/11/2019 at 08:46PM

10
#190 - diwa / @Di_nate_

09/12/2019 at 03:42AM

10
#191 - platypusDancing / @platypusDancing

09/12/2019 at 05:30PM

10
#192 - Ralph Callaway / @RalphAtCCC

09/13/2019 at 08:41AM

10
#193 - Simon / @SimontheLeg

09/13/2019 at 01:47PM

10
#194 - arsi arola / @mos_kiitto

09/13/2019 at 08:04PM

10
#195 - EL KESRI Othmane / @KesriOthmane

09/16/2019 at 12:27PM

10
#196 - Douglas Massolari / @dmassolari

09/16/2019 at 03:27PM

10
#197 - DosLin / @hidoslin

09/18/2019 at 09:28AM

10
#198 - vimgolfer / @vimgolfer7

09/20/2019 at 03:43AM

10
#199 - Sebastian Müller / @echsberde

09/21/2019 at 02:36PM

10
#200 - IronTiger Park / @IrontigerP

09/23/2019 at 08:13AM

10
#201 - Russell Lescai / @RussLescai

09/23/2019 at 10:08AM

10
#202 - Brandon Harrison / @llAboutB

09/23/2019 at 10:52PM

10
#203 - nefforr / @yayamip

09/25/2019 at 04:26AM

10
#204 - yhiraki / @coffexpr

09/26/2019 at 10:47AM

10
#205 - lxgreen / @lxgreen3

09/27/2019 at 07:10AM

10
#206 - Jake Nixon / @thejakenixon

09/28/2019 at 08:02PM

10
#207 - Sebastien Baudray / @sbaudray

09/29/2019 at 02:53PM

10
#208 - Chibi / @Chib49

09/29/2019 at 07:47PM

10
#209 - brypto / @hiimbenjy

09/30/2019 at 04:56AM

10
#210 - Grimelich / @Grimelich

09/30/2019 at 06:52AM