Skip to content

Instantly share code, notes, and snippets.

View bwkam's full-sized avatar
🐺
i love wolf

Beshoy Kamel bwkam

🐺
i love wolf
View GitHub Profile
@nat-418
nat-418 / nix-home-manager-neovim-setup.md
Last active April 24, 2025 05:27
Manage Neovim plugins (and more!) with Nix and Home Manager

Manage Neovim plugins (and more!) with Nix and Home Manager

Highly extensible software like Emacs, Vim, and Neovim tend to grow their own package managers. A software developer, for example, might want to install editor plugins that hook into a particular programming language's linter or language server. The programmer's text editor is therefore extended to support managing additional software to extend the text editor. If this loop continues for too long, the programmer's editor becomes more delicate and complex. The remedy for this problem is to manage software using dedicated tools apart

@Crinfarr
Crinfarr / DfParse.hx
Created September 29, 2022 12:36
DF command output parser
package ;
class DfParser {
static function parse(i:String):Array<{Filesystem:String, Size:String, Used:String, Avail:String, UsePct:String, MountedOn:String}> {
final result:String = i;
var resultArr:Array<String> = ~/(?=\n)/gm.split(result);
resultArr = resultArr.filter((s) -> {return if (s == "\n") false else true;});
resultArr.splice(0, 1);
var retarr:Array<{Filesystem:String, Size:String, Used:String, Avail:String, UsePct:String, MountedOn:String}> = [];
@dmsul
dmsul / vim_crash_course.md
Last active May 4, 2025 21:20
Vim Crash Course

NOTE: Specific examples given for options, flags, commands variations, etc., are not comprehensive.

NORMAL MODE

Vim has 2 main "modes", that chance the behavior of all your keys. The default mode of Vim is Normal Mode and is mostly used for moving the cursor and navigating the current file.

Some important (or longer) commands begin with ":" and you will see the text you enter next at the bottom left of the screen.

:q[uit] - quit (the current window of) Vim. ("Window" here is internal to Vim, not if you have multiple OS-level windows of Vim open at once.)
:q! - force quit (if the current buffer has been changed since the last save)
:e[dit] {filename} - read file {filename} into a new buffer.