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 600 remaining solutions by signing in and submitting your own entry
#601 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

601 active golfers, 1812 entries

Leaderboard (lowest score wins):
16
#331 - Jason Wolf / @zephyr_wolf

11/08/2012 at 01:40PM

16
#332 - Claudio Ortolina / @cloud8421

11/27/2012 at 08:41PM

16
#333 - Runar / @runarfu

12/04/2012 at 06:34PM

16
#334 - ajh / @AlexJHammel

12/27/2012 at 03:19PM

16
#335 - George GZ Zakhour / @AlloGeorge

06/25/2013 at 12:03PM

16
#336 - Ben Friedland / @bfriedland174

07/09/2013 at 11:33PM

16
#337 - James / @Dronak

07/25/2013 at 01:23PM

16
#338 - kana / @kana1

08/27/2013 at 09:52AM

16
#339 - David Escribano / @DavidEGx

08/27/2013 at 08:01PM

16
#340 - Bunwut Tson / @NbTson

08/31/2013 at 07:59PM

16
#341 - yaon / @yaon4

09/12/2013 at 11:04AM

16
#342 - Andrew Crites / @ExplosionPills

09/12/2013 at 02:54PM

16
#343 - brett / @brettyukich

09/19/2013 at 10:20PM

16
#344 - Oliver Christ / @0liverChrist

09/20/2013 at 09:44PM

16
#345 - nona urbiz / @nospampleasemam

09/28/2013 at 07:24AM

16
#346 - Greg Spurrier / @gregspurrier

10/10/2013 at 02:06AM

16
#347 - newton / @newtonsmartt

10/16/2013 at 12:07AM

16
#348 - foo / @foo88832727

10/18/2013 at 08:24PM

16
#349 - Fnord Everywhere / @FnordE

10/31/2013 at 09:11AM

16
#350 - Jonathan Potter / @nTypeRed

11/12/2013 at 06:47PM

16
#351 - Va bien te faire fou / @mplayer_vimgolf

11/16/2013 at 01:58AM

16
#352 - Karun Ramakrishnan / @the_karun

12/03/2013 at 12:43AM

16
#353 - Larry Boltovskoi / @larrybolt

12/09/2013 at 09:44AM

16
#354 - Sam Burk / @smwbk

12/21/2013 at 02:43AM

16
#355 - Salleyron Julien / @juguul

12/30/2013 at 11:52PM

16
#356 - Clinton シ / @iblamefish

01/05/2014 at 07:10PM

16
#357 - Qhuatre / @Qhuatre

01/10/2014 at 04:21PM

16
#358 - Fat troll / @fat_troll

03/29/2014 at 08:24AM

16
#359 - Endir / @Endir2

04/17/2014 at 05:16PM

16
#360 - Jeff Parent / @jeffparent

05/16/2014 at 03:56PM