Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

#Vim, (削除) 59, 57 (削除ここまで), 48 bytes/keystrokes

Vim, (削除) 59, 57 (削除ここまで), 48 bytes/keystrokes

$:let @q=float2nr(sqrt(col('.')))."|li<C-v><cr><C-v><esc>@q"<cr>@q

Since V is backwards compatible, you can Try it online!

I randomly received an upvote on this answer, so I looked over it again. My vim-golfing skills have greatly increased over the last 7 months, so I saw that this answer was very poorly golfed. This one is much better.

#Vim, (削除) 59, 57 (削除ここまで), 48 bytes/keystrokes

$:let @q=float2nr(sqrt(col('.')))."|li<C-v><cr><C-v><esc>@q"<cr>@q

Since V is backwards compatible, you can Try it online!

I randomly received an upvote on this answer, so I looked over it again. My vim-golfing skills have greatly increased over the last 7 months, so I saw that this answer was very poorly golfed. This one is much better.

Vim, (削除) 59, 57 (削除ここまで), 48 bytes/keystrokes

$:let @q=float2nr(sqrt(col('.')))."|li<C-v><cr><C-v><esc>@q"<cr>@q

Since V is backwards compatible, you can Try it online!

I randomly received an upvote on this answer, so I looked over it again. My vim-golfing skills have greatly increased over the last 7 months, so I saw that this answer was very poorly golfed. This one is much better.

added 404 characters in body
Source Link
DJMcMayhem
  • 60.1k
  • 18
  • 203
  • 352

#Vim, (削除) 59, 57 (削除ここまで), 5748 bytes/keystrokes

qqli<cr><esc>@qq@q$:let @q=float2nr(sqrt(linecol('.')))."gJj@q"<cr>gg@q"|li<C-v><cr><C-v><esc>@q"<cr>@q

ThisSince V is almost definitely one of the longest vim answersbackwards compatible, you can Try it online!

I randomly received an upvote on this answer, so I looked over it again. My vim-golfing skills have ever postedgreatly increased over the last 7 months, so I saw that this answer was very poorly golfed. This one is much better.

#Vim, (削除) 59 (削除ここまで), 57 bytes/keystrokes

qqli<cr><esc>@qq@q:let @q=float2nr(sqrt(line('.')))."gJj@q"<cr>gg@q

This is almost definitely one of the longest vim answers I have ever posted.

#Vim, (削除) 59, 57 (削除ここまで), 48 bytes/keystrokes

$:let @q=float2nr(sqrt(col('.')))."|li<C-v><cr><C-v><esc>@q"<cr>@q

Since V is backwards compatible, you can Try it online!

I randomly received an upvote on this answer, so I looked over it again. My vim-golfing skills have greatly increased over the last 7 months, so I saw that this answer was very poorly golfed. This one is much better.

added 9 characters in body
Source Link
DJMcMayhem
  • 60.1k
  • 18
  • 203
  • 352

#Vim, 59(削除) 59 (削除ここまで), 57 bytes/keystrokes

:%s/./&\r/g
ddqqli<cr><esc>@qq@q:let @q=float2nr(sqrt(line('.')))."gJ@q"
gg@q"gJj@q"<cr>gg@q

This is almost definitely one of the longest vim answers I have ever posted.

#Vim, 59 bytes/keystrokes

:%s/./&\r/g
dd:let @q=float2nr(sqrt(line('.')))."gJ@q"
gg@q

This is almost definitely one of the longest vim answers I have ever posted.

#Vim, (削除) 59 (削除ここまで), 57 bytes/keystrokes

qqli<cr><esc>@qq@q:let @q=float2nr(sqrt(line('.')))."gJj@q"<cr>gg@q

This is almost definitely one of the longest vim answers I have ever posted.

Source Link
DJMcMayhem
  • 60.1k
  • 18
  • 203
  • 352
Loading

AltStyle によって変換されたページ (->オリジナル) /