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

601 active golfers, 1812 entries

Leaderboard (lowest score wins):
17
#421 - Geetthu Joseph / @geethuaj

03/21/2014 at 07:35AM

17
#422 - Peter Strawson / @PeterStrawson

04/08/2014 at 09:58PM

17
#423 - Mick Garvey / @blarko

04/23/2014 at 05:40PM

17
#424 - Kyle Travis / @kmakai

05/16/2014 at 06:36PM

17
#425 - Jake Eaton / @Jake__Eaton

06/01/2014 at 07:12AM

17
#426 - Subhi Dweik / @SubhiDweik

06/02/2014 at 11:38PM

17
#427 - Alan Sherman / @InfoLeak117

06/05/2014 at 06:37PM

17
#428 - Adrian Bradd / @keepab

07/04/2014 at 03:37PM

17
#429 - Dave Powell / @d_pow_pow

09/09/2014 at 02:09AM

17
#430 - Jose Gutierrez / @Jogusa

09/20/2014 at 03:33PM

17
#431 - Sabiki94@ブルスクの人 / @_jptomoya

10/18/2014 at 09:20AM

17
#432 - CJ Avilla / @wizemanip

11/12/2014 at 04:56PM

17
#433 - Adrien Canuel / @AdrienCanuel

11/20/2014 at 02:24PM

17
#434 - SilentFl / @Silent_Fl

01/27/2015 at 10:37AM

17
#435 - vgmct / @vgmct

04/26/2015 at 04:54AM

17
#436 - Cosmin Banu / @cosminb82

05/06/2015 at 11:13PM

17
#437 - Clément / @clement_frndz

06/18/2015 at 10:29PM

17
#438 - Aaron Fortune / @aaron_fortune

09/20/2015 at 04:33AM

17
#439 - Rémi / @daaaaft

11/18/2015 at 03:28PM

17
#440 - Laurent Atlan / @laurentatlan1

12/29/2015 at 11:25PM

17
#441 - Antoine Brunet / @AntoineBrunet

01/13/2016 at 07:05PM

17
#442 - Chenut Ludovic / @7Brwa7

03/31/2016 at 09:44AM

17
#443 - Ben Hill / @KaizenSoze70

05/09/2016 at 06:27PM

17
#444 - Leix b / @leix_b

07/23/2016 at 06:06PM

17
#445 - André Peric Tavares / @AndrePeric

07/31/2016 at 02:28PM

17
#446 - Will / @obiwan__k3n00bi

08/17/2016 at 04:27AM

17
#447 - PeterGC / @petkusGC

08/25/2016 at 10:11PM

17
#448 - BlackCap / @BlackCapCoder

11/30/2016 at 12:58PM

17
#449 - Daniel / @Daniel00288663

03/27/2017 at 11:46AM

17
#450 - Saul Hardman / @saulhardman

08/24/2017 at 07:56AM