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 160 remaining solutions by signing in and submitting your own entry
#161 蒋金鑫 / @jiangjinxin1 - Score: 20 - 01/12/19 @ 09:13
f;Duu<Esc><Esc>bbbbbbbf;lDZZ

0 comments


Created by: @xiongyuwu

161 active golfers, 327 entries

Leaderboard (lowest score wins):
8
#151 - Cory Knapp / @coryknapp

01/12/2019 at 01:05AM

8
#152 - Dante Pasionek / @dpasi314

01/16/2019 at 01:13AM

8
#153 - Ramen Scientist / @ramen_scientist

01/16/2019 at 04:22PM

8
#154 - Kyle Safran / @kylesafran

01/17/2019 at 10:21PM

9
#155 - 쿠햅 / @Kuhave

01/13/2019 at 10:50AM

9
#156 - Grorco / @grorco

01/27/2019 at 09:03AM

11
#157 - Ismael Puerto / @ismaelpuerto

01/16/2019 at 09:11PM

11
#158 - Mark Havas / @techuntangler

02/04/2019 at 12:26PM

14
#159 - sébastien megret / @sebmegret

01/26/2019 at 07:44AM

15
#160 - Balofo Games / @BalofoGames

01/12/2019 at 02:35AM

20
#161 - 蒋金鑫 / @jiangjinxin1

01/12/2019 at 09:13AM