Skip to content

Commit 9a3b691

Browse files
Add new challenge
1 parent 0a47bed commit 9a3b691

File tree

5 files changed

+41
-0
lines changed

5 files changed

+41
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Challenges: https://www.vimgolf.com/
2323
10. `X`: Delete [count] characters before the cursor.
2424
11. `gJ`: Join [count] lines, with a minimum of two lines. Don't insert or remove any spaces.
2525
12. `+/-`: [count] lines downward/upward, on the first non-blank character linewise.
26+
13. `Q`: `Ex mode` is useful for chaining multiple commands. Use `x/q` to quit.
27+
14. `norm` followed by a number does not require a whitespace.
2628

2729
## Useful Vim resources 📖
2830
- [vim-galore](https://github.com/mhinz/vim-galore) Everything you need to know about Vim

Reorganize_Pok_mon/ans

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Q%norm4xA <Esc>p<CR>sor<CR>x<CR>
2+
w<C-V>}D<C-V>GI <Esc>zP:sor<CR>ZZ

Reorganize_Pok_mon/ans.q

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
`:out 0:asc{4_x," ",4#x}@'read0`:inp

Reorganize_Pok_mon/inp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
001 Bulbasaur
2+
002 Ivysaur
3+
003 Venusaur
4+
004 Charmander
5+
005 Charmeleon
6+
006 Charizard
7+
007 Squirtle
8+
008 Wartortle
9+
009 Blastoise
10+
010 Caterpie
11+
011 Metapod
12+
012 Butterfree
13+
013 Weedle
14+
014 Kakuna
15+
015 Beedrill
16+
016 Pidgey
17+
017 Pidgeotto
18+
018 Pidgeot

Reorganize_Pok_mon/out

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Beedrill 015
2+
Blastoise 009
3+
Bulbasaur 001
4+
Butterfree 012
5+
Caterpie 010
6+
Charizard 006
7+
Charmander 004
8+
Charmeleon 005
9+
Ivysaur 002
10+
Kakuna 014
11+
Metapod 011
12+
Pidgeot 018
13+
Pidgeotto 017
14+
Pidgey 016
15+
Squirtle 007
16+
Venusaur 003
17+
Wartortle 008
18+
Weedle 013

0 commit comments

Comments
 (0)