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 @assaflavie:

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

390 active golfers, 811 entries

Solutions by @assaflavie:
6
#288 - we’re going to need a bigger bot / @assaflavie

01/23/2019 at 03:22PM

6
#>288 - we’re going to need a bigger bot / @assaflavie

01/23/2019 at 03:24PM

6
#>288 - we’re going to need a bigger bot / @assaflavie

01/23/2019 at 03:28PM

6
#>288 - we’re going to need a bigger bot / @assaflavie

01/23/2019 at 03:28PM