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 5c393a580a5a300009888e2a

Delete to the end of the current line

Delete to the end of the current line, but keep the character under the cursor.

Start file
just to remove all text after; // this is a comment
End file
just to remove all text after;

View Diff

1c1
< just to remove all text after; // this is a comment
---
> just to remove all text after;

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 390 remaining solutions by signing in and submitting your own entry
#391 Mahendrata Harpi / @piharpi - Score: 95 - 02/10/20 @ 13:05
<Esc>c0<Esc>$d2<BS>uuuulllllllllllllllll$hlldwhhllllllluudwhhuuld4wwxxxxxxxxxxxxxxxxxxxx<Esc><Esc>:w<CR>:w<CR>:w<CR>L:w<CR>:q<CR>

0 comments


Created by: @xiongyuwu

391 active golfers, 812 entries

Leaderboard (lowest score wins):
5
#211 - Ryan Nevius / @ryannevius

03/25/2020 at 06:18AM

5
#212 - PotatoKing / @PotatoK72775616

03/27/2020 at 09:39PM

5
#213 - Rodrigo V. Lopes / @rodvlopes

04/03/2020 at 07:07PM

5
#214 - RaylanFox / @RaylanFox

04/17/2020 at 06:49AM

5
#215 - Sikker Rosendal / @srosendaldk

04/17/2020 at 12:06PM

5
#216 - António Almeida / @tonydapinta

04/23/2020 at 02:09PM

5
#217 - kayay78 / @h0taao

05/04/2020 at 07:41PM

5
#218 - Jason / @roosjason

05/05/2020 at 08:05AM

5
#219 - Arthur Goodman / @ArthurGoodman3

05/07/2020 at 08:13AM

5
#220 - Quentin Leroy / @qnleroy

05/08/2020 at 06:51AM

5
#221 - Arijus / @argshook

05/08/2020 at 01:57PM

5
#222 - Soumadeep Saha / @SoumadeepSaha8

05/10/2020 at 02:11AM

5
#223 - Shubham Tatvamasi / @shubhctl

05/10/2020 at 07:02AM

5
#224 - Moatvald / @moatvald

05/13/2020 at 05:59AM

5
#225 - lpf / @yurisses

05/21/2020 at 07:49PM

5
#226 - 于吉星 / @fishermryn

05/27/2020 at 02:30AM

5
#227 - Atiqur Rahman / @_atiqurrahman

05/28/2020 at 02:34AM

5
#228 - Eric Banisadr / @ebanisadr

05/29/2020 at 04:47AM

5
#229 - Fluidjax / @fluidjax

05/29/2020 at 08:02PM

5
#230 - RockerZZY / @rocker_zzy

06/03/2020 at 01:49AM

5
#231 - Robberechts Arne / @ArneRobberechts

06/17/2020 at 12:09PM

5
#232 - もりを / @morio_prog

06/20/2020 at 03:00AM

5
#233 - Jan Sturm / @JanSturm77

07/15/2020 at 05:27PM

5
#234 - kok / @kok89428331

07/26/2020 at 06:55AM

5
#235 - Rustem B. / @_rustemb

07/31/2020 at 10:13AM

5
#236 - Martin Kauppinen / @MartinKauppinen

08/16/2020 at 06:44PM

5
#237 - Kaustubh Murumkar / @k_austub_h

09/26/2020 at 12:17AM

5
#238 - hepebexè / @hepebexe

12/13/2020 at 08:09PM

5
#239 - Jung Yeon Park / @park_jungy

01/09/2021 at 12:17PM

5
#240 - roudens / @roudens2

01/15/2021 at 11:15AM