This commit is contained in:
2022-12-02 15:05:58 +01:00
parent 09b5fc0de6
commit 0b7044c933
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
let @z=":s/x/ /g␍0wi\n\ewi\n\ekkVjj:sort n␍3J"
let @a="ggVG:normal @z␍:%s/\\([^ ]*\\) \\([^ ]*\\) \\([^ ]*\\)/\\1*\\2+2*\\1*\\2+2*\\1*\\3+2*\\2*\\3␍:%s/ *\\n/+/␍:%s/+$//g␍ggVd:put =eval(@@)␍"
+2
View File
@@ -0,0 +1,2 @@
let @z=":s/x/ /g␍0wi\n\ewi\n\ekkVjj:sort n␍3J"
let @a="ggVG:normal @z␍:%s/\\([^ ]*\\) \\([^ ]*\\) \\([^ ]*\\)/2*\\1+2*\\2+\\1*\\2*\\3␍:%s/ *\\n/+/␍:%s/+$//g␍ggVd:put =eval(@@)␍"