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

401 active golfers, 831 entries

Leaderboard (lowest score wins):
10
#391 - 길동수 / @23BqpItUAEonueU

03/29/2019 at 03:16AM

11
#392 - Ismael Puerto / @ismaelpuerto

01/16/2019 at 09:11PM

11
#393 - Mark Havas / @techuntangler

02/04/2019 at 12:26PM

11
#394 - kimbadaa / @kimbadaa

04/02/2025 at 12:46PM

12
#395 - HYoMo-nim / @HYoMo-nim

03/28/2025 at 04:38PM

14
#396 - sébastien megret / @sebmegret

01/26/2019 at 07:44AM

15
#397 - Balofo Games / @BalofoGames

01/12/2019 at 02:35AM

20
#398 - 蒋金鑫 / @jiangjinxin1

01/12/2019 at 09:13AM

27
#399 - parkkunghyun / @parkkunghyun

04/13/2024 at 12:49PM

30
#400 - 권민재 / @gommj0611

04/07/2023 at 07:18AM

95
#401 - Mahendrata Harpi / @piharpi

02/10/2020 at 01:05PM