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

588 active golfers, 1761 entries

Leaderboard (lowest score wins):
13
#91 - Dax / @zacoxi

11/13/2018 at 09:45AM

13
#92 - name / @name65894813

11/22/2018 at 03:49AM

13
#93 - alekfed / @alek_fed

04/15/2019 at 04:05PM

13
#94 - Grant / @grant_7788

05/16/2019 at 11:57PM

13
#95 - deurzen / @devrzen

06/06/2019 at 02:56PM

13
#96 - Ben M / @Sweet_Scientist

06/07/2019 at 05:28AM

13
#97 - majo senf / @majo_senf

06/19/2019 at 11:11AM

13
#98 - Foo Bar / @foobar01123

08/28/2019 at 12:42PM

14
#99 - h_east (トロッコ6個) / @h_east

12/21/2011 at 05:13PM

14
#100 - Ali Moeeny / @alimoeeny

12/21/2011 at 05:31PM

14
#101 - Pavlo Klets / @p01nt

12/21/2011 at 05:45PM

14
#102 - Jaime A. Sánchez / @jashbeta

12/22/2011 at 01:57AM

14
#103 - Daniel Schierbeck / @dasch

12/22/2011 at 02:10PM

14
#104 - Travis Jeffery / @travisjeffery

12/23/2011 at 06:29AM

14
#105 - Arton0306 / @Arton0306

12/23/2011 at 08:38AM

14
#106 - Justin Love / @wondible

12/24/2011 at 06:18PM

14
#107 - George South / @ecuageo

12/24/2011 at 09:03PM

14
#108 - William Dunand / @wdunand

12/29/2011 at 03:02AM

14
#109 - woodspock / @woodspock

12/29/2011 at 03:22PM

14
#110 - peter shih / @peter50216

01/06/2012 at 08:20AM

14
#111 - Albin Olsson / @sentenser

01/15/2012 at 08:29PM

14
#112 - Oleg Roshupkin / @jjjahson

01/17/2012 at 07:02AM

14
#113 - bmamax / @bmamax

01/17/2012 at 02:40PM

14
#114 - Omer Lachish / @rauchy

01/25/2012 at 07:41AM

14
#115 - Henri Gabriel / @workforpizza

01/29/2012 at 02:21AM

14
#116 - kcliu / @kcliutw

01/29/2012 at 09:47AM

14
#117 - Henry Johnes / @xeosvn

01/31/2012 at 09:20PM

14
#118 - Lin Yangyang / @canoelyy

02/01/2012 at 07:15AM

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

02/03/2012 at 08:00AM

14
#120 - Stanley Wang / @stanleynwang

02/07/2012 at 12:26AM