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

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

391 active golfers, 812 entries

Solutions by @_atiqurrahman:
5
#227 - Atiqur Rahman / @_atiqurrahman

05/28/2020 at 02:34AM

5
#>227 - Atiqur Rahman / @_atiqurrahman

05/28/2020 at 02:37AM

7
#>366 - Atiqur Rahman / @_atiqurrahman

05/28/2020 at 02:32AM

8
#>375 - Atiqur Rahman / @_atiqurrahman

05/28/2020 at 02:29AM

8
#>375 - Atiqur Rahman / @_atiqurrahman

05/28/2020 at 02:31AM

10
#>383 - Atiqur Rahman / @_atiqurrahman

05/28/2020 at 02:27AM

14
#>386 - Atiqur Rahman / @_atiqurrahman

05/28/2020 at 02:22AM