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

591 active golfers, 1769 entries

Leaderboard (lowest score wins):
14
#121 - Justin Cullen / @zenguine

02/28/2012 at 06:39AM

14
#122 - Pan Thomakos / @panthomakos

03/25/2012 at 06:30PM

14
#123 - not so punk :] / @notsopunk

03/31/2012 at 05:04AM

14
#124 - learninghang / @learninghang

04/14/2012 at 05:27AM

14
#125 - Rod Knowlton / @codelahoma

04/24/2012 at 12:52PM

14
#126 - Jez Cope / @jezcope

04/28/2012 at 06:17PM

14
#127 - kurban / @kurban_mall

05/06/2012 at 03:06PM

14
#128 - CoolWebTeacher / @coolwebteacher

05/10/2012 at 04:52PM

14
#129 - Matt Holden / @MatthewEvHolden

05/19/2012 at 12:41AM

14
#130 - Alan / @aluong91

07/17/2012 at 08:10AM

14
#131 - Tomasz Jureczko / @codehaha

11/27/2012 at 08:45PM

14
#132 - Yann Moisan / @YannMoisan

01/12/2013 at 09:42PM

14
#133 - Trevor Powell / @DoomedBunnies

03/20/2013 at 04:26AM

14
#134 - Justin / @justinjaffray

04/28/2013 at 03:07AM

14
#135 - Drew Neil / @nelstrom

08/27/2013 at 08:31AM

14
#136 - Raphaël Saunier / @RaphaelSaunier

08/27/2013 at 07:46PM

14
#137 - isayoldchap / @isayoldchap

09/07/2013 at 02:52PM

14
#138 - codegourmet / @codegourmet

10/01/2013 at 01:01PM

14
#139 - Adam McLain / @adammclain

10/03/2013 at 12:56AM

14
#140 - thasso / @thasso23

11/01/2013 at 06:13PM

14
#141 - lastsseldon / @lastsseldon

11/04/2013 at 03:10AM

14
#142 - gary.klindt@googlema / @garstekli

11/19/2013 at 12:26AM

14
#143 - Quota / @Quotad

01/16/2014 at 08:51AM

14
#144 - Andreas Källberg / @Anka213

01/17/2014 at 05:12AM

14
#145 - Joonas Pihlajamaa / @jokkebk

02/11/2014 at 01:31PM

14
#146 - Marchand Paul-Valère / @pvmarch

02/27/2014 at 09:18AM

14
#147 - Sean Huber / @bonquesha99

03/13/2014 at 02:49PM

14
#148 - Arpitha George / @arpithageorge

03/22/2014 at 09:41AM

14
#149 - Pedro Santos / @pedrosans

03/25/2014 at 07:46PM

14
#150 - playalong / @playwithit42

07/09/2014 at 08:06AM