Programming thread

  • Want to keep track of this thread?
    Accounts can bookmark posts, watch threads for updates, and jump back to where you stopped reading.
    Create account
"wow vim is so coooooool i love how comfy everything is!!!!!!"
week after:
Code:
>>> :q
  File "<python-input-3>", line 1
    :q
    ^
SyntaxError: invalid syntax
>>>
 
Ok, I spent most of the day configuring a terminal emulator (windows btw) and then doing the Neovim tutorial to the point I feel confident moving around and editing things.

Any recommended keybinds, settings or plugins? I've just been learning by putting together my own init.lua from scratch, ricing out my color schemes, etc.
 
Ok, I spent most of the day configuring a terminal emulator (windows btw) and then doing the Neovim tutorial to the point I feel confident moving around and editing things.

Any recommended keybinds, settings or plugins? I've just been learning by putting together my own init.lua from scratch, ricing out my color schemes, etc.
the only plugins i mainly use are treesitter oil.nvim and mini.move

i use plug.vim as a plugin manager

my colorscheme is moonfly because it has a shit ton of different colors
 
Any recommended keybinds, settings or plugins?
Code:
set relativenumber
shows how many lines above and below something is relative to your cursor, which is often useful for precisely targeting motions.

Code:
set virtualedit=onemore
this will let you go past the final character of the line in normal mode

As far as plugins, I have many recommendations, but if you're just starting out, I'll recommend leap.


It's a successor to vim-sneak. A new motion that lets you quickly move the cursor to anywhere on the screen, including moving between windows if you so choose.
 
Ok, I spent most of the day configuring a terminal emulator (windows btw) and then doing the Neovim tutorial to the point I feel confident moving around and editing things.

Any recommended keybinds, settings or plugins? I've just been learning by putting together my own init.lua from scratch, ricing out my color schemes, etc.
I've been using LazyVim from the beginning though I've heard kickstart.nvim is more minimal. Also here's a really cool plugin:
 
"wow vim is so coooooool i love how comfy everything is!!!!!!"
week after:
Code:
>>> :q
  File "<python-input-3>", line 1
    :q
    ^
SyntaxError: invalid syntax
>>>
Ctrl+w has closed far too many browser tabs.

Any recommended keybinds, settings or plugins?
https://github.com/wsdjeg/vim-fetch can be useful at times, especially if you use it with tmux and fpp. It lets you open a file at a specific line using the same file:line: format that is used in compiler errors, grep, etc. instead of having to translate to vim's file +line (vim plugins still work with neovim, but you might have to install it differently?)

If you need/want a spellchecker, :set spell will enable it and highlight words, z= will offer suggestions for the word under the cursor. You can change the dictionaries used with :set spelllang.

Something that probably isn't very useful on windows is the :read! command, which will execute a shell command and insert the output into the buffer at the cursor, e.g. :r! date will insert the current date and time, :r! bc -q <<< "2^16 - 1" will insert 65535, etc.. Windows doesn't have the rich array of command line utilities that linux does, but it's a neat feature because you aren't limited to built-in commands or even plugins.
 
the :read! command, which will execute a shell command and insert the output into the buffer at the cursor, e.g. :r! date will insert the current date and time
What allows even more ghetto engineering in your text editor is that you can visually select a block of text, invoke any shell command e.g. :!sort, and it will take your selected text as the standard input for the command, and then bring back the standard output into the editor.
 
I recently became radicalized into free software/GPL everything and as part of that I wanna license a project I'm working on under one of the insane batshit FOSS licenses like AGPLv3. The current issue is that there there's one third party module that's not under a FOSS license.

It's made by a guy who has been MIA for like 3 years. He's literally giving it away for free as a download on his personal website and yet for some reason he decided to put it under his own self-made license that he named after himself. It's obviously written by a non-lawyer but besides that it only allows "educational use"(???) and ambiguously disallows "redistribution." Not redistribution in commercial applications, just "redistribution."

The module itself is only about 700 lines so I'm just doing a clean room re-implementation but come the fuck on man, MIT is right fucking there.
 
I recently became radicalized into free software/GPL everything and as part of that I wanna license a project I'm working on under one of the insane batshit FOSS licenses like AGPLv3. The current issue is that there there's one third party module that's not under a FOSS license.

It's made by a guy who has been MIA for like 3 years. He's literally giving it away for free as a download on his personal website and yet for some reason he decided to put it under his own self-made license that he named after himself. It's obviously written by a non-lawyer but besides that it only allows "educational use"(???) and ambiguously disallows "redistribution." Not redistribution in commercial applications, just "redistribution."

The module itself is only about 700 lines so I'm just doing a clean room re-implementation but come the fuck on man, MIT is right fucking there.
>wants to use retarded copy-left license
>mad at someone else's retarded license
 
>wants to use retarded copy-left license
>mad at someone else's retarded license
My retarded license is written by real lawyers and allows people maximum freedom with my code. His retarded license is bullshit that implies that you're not even allowed to use his code even though it's a module he clearly wants people to download and use.
 
Globohomo approved loicence. No thanks i will stick to real license ie GPL
gay phaggot license

also gpl is zogged

1761775188268.png
1761775210422.png
 
gay phaggot license

also gpl is zogged

View attachment 8098954
View attachment 8098955
"stallman is jewish" boohoo nigga why does it matter. are you going to throw out your computer because a jewish person might've worked on it?

stallman's work with the fsf is the sole reason we don't eat even more shit from proprietary companies like microsoft then we do now. if jews got together and threw billions of dollars at the linux kernel i would allow them a little genocide as a treat
 
Back
Top Bottom