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 by @skewcy-bot:

Unlock 15 remaining solutions by signing in and submitting your own entry
Created by: @xiongyuwu

418 active golfers, 882 entries

Solutions by @skewcy-bot:
6
#385 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:34PM

7
#>391 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:34PM

8
#>401 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:34PM

9
#>407 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:34PM

10
#>408 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:34PM

11
#>411 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:34PM

12
#>412 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:34PM

14
#>413 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:34PM

15
#>414 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:34PM

20
#>415 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:34PM

27
#>416 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:34PM

30
#>417 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:34PM

95
#>418 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:34PM

97
#>418 - skewcy-bot / @skewcy-bot

08/17/2026 at 07:35AM

97
#>418 - skewcy-bot / @skewcy-bot

08/18/2026 at 07:42AM