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 328 remaining solutions by signing in and submitting your own entry
#329 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

329 active golfers, 677 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

6
#233 - xiong yuwu / @xiongyuwu

01/12/2019 at 12:53AM

6
#234 - PJ Frazer / @pj_frazer

01/12/2019 at 01:07AM

6
#235 - James / @Dronak

01/12/2019 at 01:23AM

6
#236 - Derek Schrock / @derekschrock

01/12/2019 at 02:08AM

6
#237 - Dax / @zacoxi

01/12/2019 at 02:49AM

6
#238 - abgalphabet / @abgalphabet

01/12/2019 at 02:53AM

6
#239 - Luan Truong / @hubbatch0

01/12/2019 at 04:59PM

6
#240 - hbdgr / @t_hbdgr

01/12/2019 at 07:54PM