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):
15
#181 - captain_morgan / @captain_morgan

01/05/2012 at 07:50PM

15
#182 - Mikael Amborn / @mikaelamborn

01/21/2012 at 12:48PM

15
#183 - oliver mueller / @marcontwit

01/26/2012 at 05:31AM

15
#184 - Ashley Feniello / @AshleyFen

01/29/2012 at 06:37AM

15
#185 - Tesnorth / @Tesnorth

01/30/2012 at 09:18PM

15
#186 - veki / @vx_ras

02/01/2012 at 10:58AM

15
#187 - Tom White / @twar59

02/03/2012 at 04:04PM

15
#188 - Henri Wiechers / @hwiechers

02/08/2012 at 09:05AM

15
#189 - Kurt Gaastra / @KGaastra

02/10/2012 at 10:53PM

15
#190 - Per Nissilä / @PerNissila

02/12/2012 at 06:08PM

15
#191 - Alexander Scherbinin / @realmyst

02/14/2012 at 12:03AM

15
#192 - Dan Herbert / @pocketninja_au

02/29/2012 at 12:48AM

15
#193 - 無ん垢の叫び / @john_ababa

02/29/2012 at 08:00AM

15
#194 - arno renevier / @dadadiblog

03/18/2012 at 03:05PM

15
#195 - deris / @deris0126

04/03/2012 at 12:37PM

15
#196 - Steven Moazami / @mong8se

04/03/2012 at 02:54PM

15
#197 - Jonathan Lozinski / @jlozinski

04/21/2012 at 02:06PM

15
#198 - Radek / @qrczeno

04/22/2012 at 08:20AM

15
#199 - Daniel P. Wright / @danielpwright

04/24/2012 at 07:11AM

15
#200 - VimGolfDzNrSQleot / @VimGolfDzNrSQle

05/10/2012 at 09:44PM

15
#201 - Dave@Highgroove / @HighgrooveDave

05/22/2012 at 08:55PM

15
#202 - Sam Saffron / @samsaffron

06/21/2012 at 12:36AM

15
#203 - mwatkward / @AftrschoolSpe

06/22/2012 at 12:16PM

15
#204 - Kerson Hsiao / @KersonHsiao

07/11/2012 at 04:26PM

15
#205 - Reed Riley / @ReedRile

08/13/2012 at 07:02PM

15
#206 - mhb / @mhbvim

09/18/2012 at 11:12AM

15
#207 - Marcin Sza / @coot_

09/20/2012 at 06:03PM

15
#208 - Bracey Summers / @bcsummers

09/29/2012 at 07:11PM

15
#209 - Adam Dratwinski / @adwinsky

11/27/2012 at 08:24PM

15
#210 - Felix Ingram / @lllamaboy

11/27/2012 at 08:41PM