mrbn

joined 1 year ago
[–] mrbn@lemmy.ca 1 points 5 months ago

Windows 98 -> Slackware dual boot (with big ol' red grub screen) -> windows up to win 10 -> debian(laptop) win10 (pc)

Gonna try getting a new m.2 drive and dual booting soon to test playing the games I like on Linux. If all goes well, I'll be moving away from windows

[–] mrbn@lemmy.ca 1 points 7 months ago

(theres a mac version but isn’t the same)

There was a mac version. But it is hitting EOL in August

[–] mrbn@lemmy.ca 5 points 7 months ago (1 children)

After using AI chat stuff like this and chatgpt, ive come to the conclusion that building prompts is akin to building search queries for search engines. Wherein using the right terms leads to better results.

[–] mrbn@lemmy.ca 2 points 9 months ago (1 children)
command! -range -nargs=1 PadColumns call PadColumns(<line1>, <line2>, <args>)

function! PadColumns(start, end, columns)
    execute a:start.','.a:end.'s/\(.*\)\zs\s*$/\='.'repeat(" ", a:columns - len(submatch(1)))'
endfunction

Use by typing in Normal mode :PadColumns 20. This will add spaces after the line or selected lines to the column you specify (in this case, 20).

You could probably improve this by getting the length of the longest line and so you dont need to specify the specific column to add spaces to (20), and instead just add say 5 spaces after longest line for all lines.

[–] mrbn@lemmy.ca 4 points 9 months ago (3 children)

I do not think that this is an existing feature in neovim, however this seems to work :%s/\(.*\)\zs\s*$/\=repeat(' ', 15 - len(submatch(1)))

Change 15 to the column desired. You could probably create a function where you pass the column number you want so that you dont have to type this string all the time.