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

977 active golfers, 3577 entries

Leaderboard (lowest score wins):
16
#781 - Qwby / @Qwby2

08/03/2019 at 08:51AM

16
#782 - Alberto Pose / @thepose

08/04/2019 at 06:14PM

16
#783 - Whitelea / @CloudPaal

08/05/2019 at 01:09PM

16
#784 - antónio miranda / @ammutable

08/07/2019 at 08:54PM

16
#785 - Sam Cain / @samcain217

08/09/2019 at 04:06AM

16
#786 - Dan The Man / @VafelSukaPidar

08/13/2019 at 05:13AM

16
#787 - Cliff Chung / @CliffChung

08/16/2019 at 06:28PM

16
#788 - vim_ninja / @NinjaVim

08/19/2019 at 02:16AM

16
#789 - odi ssea / @od1ssea

08/20/2019 at 09:30AM

16
#790 - Jack Mooney / @jmooney7

08/22/2019 at 07:59AM

16
#791 - Blocky Balboa / @g8logic

08/26/2019 at 06:17AM

16
#792 - dpetrovic_vimgolf / @DpetrovicV

08/27/2019 at 11:56AM

16
#793 - Lyn Fernandez / @tallkien

08/27/2019 at 04:13PM

16
#794 - mackie / @macklinu

08/30/2019 at 10:27PM

16
#795 - Fabio A. Camichel / @fabacam

08/31/2019 at 01:05PM

16
#796 - abgold / @abgold43461328

09/02/2019 at 03:44AM

16
#797 - Carl / @Subzidion

09/02/2019 at 07:06AM

16
#798 - Miguel / @mperezibars

09/02/2019 at 02:51PM

16
#799 - Raphael Marra / @rtmarra

09/04/2019 at 08:18PM

16
#800 - Phuc Ngo Hoang Anh / @nhap96

09/12/2019 at 07:44PM

16
#801 - Khamnhoui-Boulom / @k_nhoui

09/16/2019 at 05:05AM

16
#802 - Stefan Käser / @stivi_kivi

09/17/2019 at 12:03PM

16
#803 - Viktor Styrud / @Visklol

09/18/2019 at 09:01AM

16
#804 - Jonathan Yong / @yongrenjie

09/19/2019 at 01:04PM

16
#805 - 0x3bb5 / @0x3bb5

09/19/2019 at 04:44PM

16
#806 - masatoyoshioka / @Yoshioka0627

09/27/2019 at 11:53AM

16
#807 - RoboDollars / @MrDaddyMachine

10/01/2019 at 11:45PM

16
#808 - ahahsod / @ahahsod

10/07/2019 at 06:42AM

16
#809 - 小山内まい / @osanamity

10/07/2019 at 04:15PM

16
#810 - Pieter Joost / @pjvds

10/09/2019 at 10:39AM