3 ms·
FizzBuzz: (score: 71) i1^] qaYp CTRL+a q98@aggjjqaA Fizz^] 3jq32@agg:5 ENTER qaA Buzz^] 5jq19@a:%s/z B/zB/ ENTER ZZ
by jjcm 16y ago
FizzBuzz: (score: 71)
i1^]
qaYp
CTRL+a
q98@aggjjqaA Fizz^]
3jq32@agg:5
ENTER
qaA Buzz^]
5jq19@a:%s/z B/zB/
ENTER
ZZ
- psadauskas 16y agoYou don't need the "gg" (move to top) before ":5" (go to line 5)
- deleted 16y ago[deleted]
- deleted 16y ago[deleted]
- clvv 16y agoYou can achieve even less key strokes if you have your vim automatically removes trailing spaces, which is a neat feature itself and a common hack. autocmd BufWritePre * :%s/\s\+$// 53 is the least I got.