This is a simplistic setup trying to emulate at least part of i3 behaviour on MacOS using yabai. Key-bindings are partially replicated due to the presence of MacOS built-in bindings
Start with installing (and understanding) following tools
| ---Utility for keymap creation. | |
| ---@param lhs string | |
| ---@param rhs string|function | |
| ---@param opts string|table | |
| ---@param mode? string|string[] | |
| local function keymap(lhs, rhs, opts, mode) | |
| opts = type(opts) == 'string' and { desc = opts } | |
| or vim.tbl_extend('error', opts --[[@as table]], { buffer = bufnr }) | |
| mode = mode or 'n' | |
| vim.keymap.set(mode, lhs, rhs, opts) |
| {-# LANGUAGE PatternSynonyms #-} | |
| {-# LANGUAGE TemplateHaskell #-} | |
| {-# LANGUAGE TypeOperators #-} | |
| {-# LANGUAGE KindSignatures #-} | |
| {-# LANGUAGE RankNTypes #-} | |
| {-# LANGUAGE GADTs #-} | |
| {-# LANGUAGE ViewPatterns #-} | |
| {-# LANGUAGE FlexibleContexts #-} | |
| {-# LANGUAGE QuantifiedConstraints #-} |
| #This is a step-by-step guide to build the avr-gcc 10.2 with the | |
| #libstdc++ using the freestanding implementation[1]. | |
| # | |
| #Don't expect a robust script without boilerplates or something coded | |
| #to be resilient. This is only a short register of what I need to | |
| #obtain the compiler in this mode. | |
| # | |
| #[1] https://timsong-cpp.github.io/cppwp/n4861/compliance | |
| wget https://ftp.gnu.org/gnu/binutils/binutils-2.36.tar.gz |
This is a simplistic setup trying to emulate at least part of i3 behaviour on MacOS using yabai. Key-bindings are partially replicated due to the presence of MacOS built-in bindings
Start with installing (and understanding) following tools
| %.compdb_entry: %.c | |
| @echo " {" > $@ | |
| @echo " \"command\": \"cc $(CFLAGS) $(CPPFLAGS) -c $<\"," >> $@ | |
| @echo " \"directory\": \"$(CURDIR)\"," >> $@ | |
| @echo " \"file\": \"$<\"" >> $@ | |
| @echo " }," >> $@ | |
| COMPDB_ENTRIES = $(addsuffix .compdb_entry, $(basename $(SOURCES))) | |
| compile_commands.json: $(COMPDB_ENTRIES) |
Let's start by getting it out on the table: Sublime Text is great, and version 3 should no longer be considered "abandonware" as of build 3065. Sublime Text served me very, very well over the years. That said, trying out new things is a major part of leveling-up, and in that vein Vim deserves a go. (And have you seen some of those thoughtbot guys flying around in Vim? It's awesome!)
Getting Vim up-and-running on your Windows machine doesn't have to be an all-day project. In this post, we'll walk through:
| # place this in your fish path | |
| # ~/.config/fish/config.fish | |
| function fish_greeting | |
| if not type fortune > /dev/null 2>&1 | |
| apt-get install fortune | |
| end | |
| fortune -a | |
| end |