Played Challenges
Rural Post - 4596 entries
Simple challenge to remove all but the post code on each line
- Best score: 9
- Best player score: 14
- Position: #720 / 1122
- Number of attempts: 2
Simple, Practical, and Common - 33981 entries
Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.
- Best score: 22
- Best player score: 23
- Position: #2557 / 7507
- Number of attempts: 4
prepend * to every non-blank line - 6390 entries
Prepend an asterisk to every non-blank line in the input file.
- Best score: 10
- Best player score: 15
- Position: #992 / 1560
- Number of attempts: 1
One number per line - 18894 entries
Just give me the numbers.
- Best score: 14
- Best player score: 17
- Position: #1117 / 3901
- Number of attempts: 4
V to the i - 4864 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 8
- Position: #1213 / 1912
- Number of attempts: 2
Applying same text modification in several lines - 2927 entries
Remove identical text at the beginning of several lines and the closing parenthesis.
- Best score: 12
- Best player score: 15
- Position: #526 / 865
- Number of attempts: 2
Add semicolons - 10951 entries
Simply add a semicolon at the end of each line
- Best score: 10
- Best player score: 11
- Position: #952 / 3096
- Number of attempts: 2
Split line with dots - 2174 entries
This line is too long, split it.
- Best score: 15
- Best player score: 17
- Position: #256 / 638
- Number of attempts: 3
Box it - 7998 entries
Create a box around a line.
- Best score: 21
- Best player score: 26
- Position: #1081 / 1898
- Number of attempts: 3
Turn a ninja to case-insensitive [Nn][Ii][Nn][Jj][Aa] regexp! - 72 entries
I bumped into this in a dailywtf code: http://pastebin.com/QApa5ycS I didn't want to translate a string whenever I wanted to be [Ss][Aa][Rr][Cc][Aa][Ss][Tt][Ii][Cc] on slack, so I figured a script (python, sed, whatever) would be helpful. Well, or a few vim keystroke!
- Best score: 18
- Best player score: 18
- Position: #19 / 40
- Number of attempts: 2
Basic renumbering - 5731 entries
Renumbering Basic.
- Best score: 11
- Best player score: 21
- Position: #919 / 1277
- Number of attempts: 1
replace 2nd column blanks with values in same column if blank - 248 entries
Where ,SOMELOGB and ,SOMELOGC replaces each /r carriage return if 2nd column is blank. The replace only happens if 2nd column is blank though and should replace up to the non blank row.
- Best score: 15
- Best player score: 20
- Position: #73 / 84
- Number of attempts: 1
Entries sort - 101 entries
It cames to my mind a weird idea : sorting parts of my .vimrc. Take few minutes to sort out this, it's easy !
- Best score: 14
- Best player score: 17
- Position: #32 / 42
- Number of attempts: 1
I forgot quotes - 16185 entries
Oops.
- Best score: 10
- Best player score: 15
- Position: #2187 / 4221
- Number of attempts: 3
vim1001 - 315 entries
change number 1001 into a "vim1001 sequence". (My first challenge, hope it is not too bad... )
- Best score: 17
- Best player score: 41
- Position: #105 / 111
- Number of attempts: 1
Groups magic - 168 entries
Regexp or macros for string converting: (a) -> ___ (abc) -> ____ (abcd) -> ______ All in the '(' replace to _ multiply by char count + ()
- Best score: 13
- Best player score: 14
- Position: #66 / 98
- Number of attempts: 2
Remove noise from HTTP log - 742 entries
This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.
- Best score: 15
- Best player score: 16
- Position: #197 / 280
- Number of attempts: 2
A Simple One - 1079 entries
Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...
- Best score: 9
- Best player score: 9
- Position: #454 / 677
- Number of attempts: 1
Reverse and count - 489 entries
Someone typed things upside down and now a Vim ninja needs to reverse the lines and count how many there are.
- Best score: 18
- Best player score: 24
- Position: #81 / 180
- Number of attempts: 3
Reformat a C golf submission - 644 entries
Take this C golf submission (for the "tiny but standards-compliant Hello World program" category, naturally), and turn it into formatted C code.
- Best score: 22
- Best player score: 29
- Position: #87 / 216
- Number of attempts: 1
Simple text editing with Vim - 13576 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 22
- Position: #3098 / 3892
- Number of attempts: 1
Reformat/Refactor a Golfer Class - 7649 entries
A simple case of removing unneeded code and fixing broken indentation.
- Best score: 7
- Best player score: 36
- Position: #497 / 1882
- Number of attempts: 2
VimGolf