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):
15
#211 - Kerson Hsiao / @KersonHsiao

07/11/2012 at 04:26PM

15
#212 - Reed Riley / @ReedRile

08/13/2012 at 07:02PM

15
#213 - mhb / @mhbvim

09/18/2012 at 11:12AM

15
#214 - Marcin Szamotulski / @me_coot

09/20/2012 at 06:03PM

15
#215 - Bracey Summers / @bcsummers

09/29/2012 at 07:11PM

15
#216 - Adam Dratwinski / @adwinsky

11/27/2012 at 08:24PM

15
#217 - Felix Ingram / @lllamaboy

11/27/2012 at 08:41PM

15
#218 - Tom Cammann / @tea_sea

11/27/2012 at 08:50PM

15
#219 - Asmund / @herrasbe

01/10/2013 at 08:54PM

15
#220 - Koko / @Koko72525913

01/17/2013 at 04:50PM

15
#221 - a24f0600 / @a24f0600

01/17/2013 at 05:17PM

15
#222 - Daniel Jonsson / @DanielJonss

01/17/2013 at 07:27PM

15
#223 - N / @nymph192

02/11/2013 at 10:38PM

15
#224 - powertomato / @powertomato

07/04/2013 at 09:28AM

15
#225 - Bradd Szonye / @bszonye

07/11/2013 at 11:36AM

15
#226 - Roland Schatz / @fl_Overmind

07/12/2013 at 05:12PM

15
#227 - Aaron Bieber / @aaronbieber

07/14/2013 at 11:24PM

15
#228 - Dr Rev J. “I am not a bot!” Kirchartz, KSC, KHS / @JKirchartz

07/28/2013 at 07:38PM

15
#229 - cj / @cj01101

08/05/2013 at 03:37AM

15
#230 - Bart of Denver / @bartofdenver

08/12/2013 at 03:21PM

15
#231 - marmelad / @jordgubbssylt

08/24/2013 at 09:18PM

15
#232 - Martin Rehfeld / @klickmich

08/27/2013 at 09:41AM

15
#233 - Ed Zukowski / @dataoverflow

08/27/2013 at 07:54PM

15
#234 - David Pathakjee / @DavidPathakjee

08/29/2013 at 03:52AM

15
#235 - hiding / @I_haveno_name

10/01/2013 at 11:19PM

15
#236 - evilmoe ☮ / @evilmoe

10/15/2013 at 07:38PM

15
#237 - Casey Dwyer / @caseydwyer

10/24/2013 at 08:23PM

15
#238 - bunnies president / @bunnies4p

10/28/2013 at 01:24PM

15
#239 - Petr Broz / @ipetrbroz

12/19/2013 at 01:08AM

15
#240 - pikaren / @REALpikaren

12/23/2013 at 03:32PM