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

631 active golfers, 1921 entries

Leaderboard (lowest score wins):
14
#121 - peter shih / @peter50216

01/06/2012 at 08:20AM

14
#122 - Albin Olsson / @sentenser

01/15/2012 at 08:29PM

14
#123 - Oleg Roshupkin / @jjjahson

01/17/2012 at 07:02AM

14
#124 - bmamax / @bmamax

01/17/2012 at 02:40PM

14
#125 - Omer Lachish / @rauchy

01/25/2012 at 07:41AM

14
#126 - Henri Gabriel / @workforpizza

01/29/2012 at 02:21AM

14
#127 - kcliu / @kcliutw

01/29/2012 at 09:47AM

14
#128 - Henry Johnes / @xeosvn

01/31/2012 at 09:20PM

14
#129 - Lin Yangyang / @canoelyy

02/01/2012 at 07:15AM

14
#130 - Jiří Chára / @JiriChara

02/03/2012 at 08:00AM

14
#131 - Stanley Wang / @stanleynwang

02/07/2012 at 12:26AM

14
#132 - Justin Cullen / @zenguine

02/28/2012 at 06:39AM

14
#133 - Pan Thomakos / @panthomakos

03/25/2012 at 06:30PM

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

03/31/2012 at 05:04AM

14
#135 - learninghang / @learninghang

04/14/2012 at 05:27AM

14
#136 - Rod Knowlton / @codelahoma

04/24/2012 at 12:52PM

14
#137 - Jez Cope / @jezcope

04/28/2012 at 06:17PM

14
#138 - kurban / @kurban_mall

05/06/2012 at 03:06PM

14
#139 - CoolWebTeacher / @coolwebteacher

05/10/2012 at 04:52PM

14
#140 - Matt Holden / @MatthewEvHolden

05/19/2012 at 12:41AM

14
#141 - Alan / @aluong91

07/17/2012 at 08:10AM

14
#142 - Tomasz Jureczko / @codehaha

11/27/2012 at 08:45PM

14
#143 - Yann Moisan / @YannMoisan

01/12/2013 at 09:42PM

14
#144 - Trevor Powell / @DoomedBunnies

03/20/2013 at 04:26AM

14
#145 - Justin / @justinjaffray

04/28/2013 at 03:07AM

14
#146 - Drew Neil / @nelstrom

08/27/2013 at 08:31AM

14
#147 - Raphaël Saunier / @RaphaelSaunier

08/27/2013 at 07:46PM

14
#148 - isayoldchap / @isayoldchap

09/07/2013 at 02:52PM

14
#149 - codegourmet / @codegourmet

10/01/2013 at 01:01PM

14
#150 - Adam McLain / @adammclain

10/03/2013 at 12:56AM