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 4ef209ef78702b0001000019

Make it more readable

Insert blank lines to make it more organized and readable

Start file
#Set the global prefix key to C-q (default is C-b)
set-option -g prefix C-q
bind-key C-q last-window
# Remove default binding since we’re replacing
unbind %
bind | split-window -h
bind - split-window -v
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=green]#H'
# Highlight active window
set-window-option -g window-status-current-bg red
set -g status-right '#[fg=yellow]#(uptime | cut -d "," -f 2-)'
# Set window notifications
setw -g monitor-activity on
set -g visual-activity on
# Automatically set window title
setw -g automatic-rename

End file
#Set the global prefix key to C-q (default is C-b)
set-option -g prefix C-q
bind-key C-q last-window


# Remove default binding since we’re replacing
unbind %
bind | split-window -h
bind - split-window -v


# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=green]#H'


# Highlight active window
set-window-option -g window-status-current-bg red
set -g status-right '#[fg=yellow]#(uptime | cut -d "," -f 2-)'


# Set window notifications
setw -g monitor-activity on
set -g visual-activity on


# Automatically set window title
setw -g automatic-rename

View Diff

3a4,5
> 
> 
7a10,11
> 
> 
11a16,17
> 
> 
14a21,22
> 
> 
17a26,27
> 
> 

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 612 remaining solutions by signing in and submitting your own entry
#613 Brandon Height / @Lask0x - Score: 93 - 08/08/17 @ 15:33
:2,$s/^#/\r\r#/<CR><Esc>u<Up><Up><Up><Up><Esc>:2,s$/^#/\r\r#<CR>y<Esc>u<Esc>:<Up><C-A><Right><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>$s<Esc><Esc><Esc>ssss<Esc>uus<Esc>u<Esc>:2,$s,<BS>/^#/\r\r#<CR>ZZ

0 comments


Created by: @alimoeeny

613 active golfers, 1860 entries

Leaderboard (lowest score wins):
17
#391 - Beau Dacious / @nocash

12/21/2011 at 05:52PM

17
#392 - Kent Sibilev / @datanoise

12/21/2011 at 06:17PM

17
#393 - Sergi Sorribas / @lerovitch

12/22/2011 at 12:34PM

17
#394 - 0x5042 / @0x5042

12/24/2011 at 07:40AM

17
#395 - Thijs Brobbel / @tiesmaster

12/28/2011 at 04:04PM

17
#396 - Dj Vimgolf / @dj_vimgolf

12/31/2011 at 12:49AM

17
#397 - Raj Sahae / @rajsahae

01/02/2012 at 10:31PM

17
#398 - Dave E / @DaveRElliott

01/04/2012 at 11:29PM

17
#399 - Burkhard Zimmermann / @BurkZimm

01/06/2012 at 01:28PM

17
#400 - Matt Woelk / @MattWoelk

01/12/2012 at 05:52AM

17
#401 - Forrest L Norvell / @othiym23

01/27/2012 at 11:43AM

17
#402 - Ethan / @ethanmiller

01/31/2012 at 12:09AM

17
#403 - SeanPlusPlus / @SeanPlusPlus

01/31/2012 at 06:55AM

17
#404 - Chris Geihsler / @seejee

01/31/2012 at 10:58PM

17
#405 - はなたん / @hntn

02/04/2012 at 01:22AM

17
#406 - John Ford / @GhettoCode

02/04/2012 at 03:01AM

17
#407 - Kevin Hamer / @khamer

02/14/2012 at 12:47AM

17
#408 - Dan Huang / @yuzeh

02/16/2012 at 07:22PM

17
#409 - Scott Schlesier / @sschlesier

02/22/2012 at 08:00AM

17
#410 - Leon Miller-Out / @leonmo

03/06/2012 at 03:34PM

17
#411 - Michał Wróbel / @sparrovv_

03/14/2012 at 12:20AM

17
#412 - Vamshi Krishna / @pvamshi

04/04/2012 at 10:35AM

17
#413 - Christian Helbling / @friendly_coder

04/08/2012 at 06:49PM

17
#414 - Tobias Sjösten / @tobiassjosten

04/24/2012 at 06:28PM

17
#415 - Sean Todd / @descentintomael

04/28/2012 at 05:09AM

17
#416 - lauri lehmijoki / @laurilehmijoki

06/02/2012 at 08:16PM

17
#417 - RusAlex Pletnev / @RusAlexander

06/14/2012 at 06:32AM

17
#418 - Brandon Montgomery / @bmonty

06/23/2012 at 08:30PM

17
#419 - Piotr Sarnacki / @drogus

09/10/2012 at 08:27PM

17
#420 - Jordan Eldredge / @captbaritone

12/01/2012 at 07:58AM