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

604 active golfers, 1821 entries

Leaderboard (lowest score wins):
16
#301 - Vladyslav Marsikov / @gagabogolo

01/04/2012 at 08:00PM

16
#302 - Christopher Brew / @Seph1rothVII

01/10/2012 at 12:49AM

16
#303 - Petrik de Heus / @four54

01/14/2012 at 09:45PM

16
#304 - zDlZPSx zDlZPSx / @zDlZPSx

01/26/2012 at 11:49PM

16
#305 - themolok / @themolok

01/30/2012 at 10:49PM

16
#306 - pangloss / @tpattern

01/31/2012 at 08:30AM

16
#307 - artanis / @artanislives

01/31/2012 at 01:30PM

16
#308 - Nicolas Terray / @nterray

02/02/2012 at 10:50PM

16
#309 - James Freed / @JamesTFreed

02/02/2012 at 11:09PM

16
#310 - Flugsio / @flugsio

02/05/2012 at 07:40PM

16
#311 - siddhy / @just_sid

02/08/2012 at 11:34AM

16
#312 - Dave Smylie / @davesmylie

02/08/2012 at 08:19PM

16
#313 - Rasmus P / @rasmup

02/08/2012 at 09:24PM

16
#314 - Kieran / @kgleeson

02/09/2012 at 10:42PM

16
#315 - Fabien Cazenave / @fabi1cazenave

02/16/2012 at 02:44PM

16
#316 - koozie / @koozie

03/06/2012 at 01:53AM

16
#317 - Bartłomiej Kozal / @bkzl_

03/26/2012 at 09:14PM

16
#318 - Ehren Murdick / @rubyprogrammer

03/27/2012 at 09:12PM

16
#319 - Alex David / @alexd_me

03/27/2012 at 09:27PM

16
#320 - Pepe / @GomTvIneluki

04/16/2012 at 05:01PM

16
#321 - keyboardsurfer / @keyboardsurfer

04/24/2012 at 07:19PM

16
#322 - jDeveloper / @jDevEE

04/25/2012 at 08:20PM

16
#323 - Mac Heller-Ogden / @twosoul

05/01/2012 at 07:31PM

16
#324 - ise0615 / @ise0615

05/02/2012 at 06:45PM

16
#325 - Krallja / @krallja

05/20/2012 at 07:22PM

16
#326 - Tomas Frostensson / @frostensson

05/22/2012 at 03:42PM

16
#327 - jimdev / @jimdev2

05/25/2012 at 07:13AM

16
#328 - quintin / @quintinjeannoel

05/30/2012 at 09:04PM

16
#329 - Michael Blatherwick / @rogue_michael

07/06/2012 at 10:33AM

16
#330 - mlu / @_mlu

07/26/2012 at 09:02AM