Saturday, November 4, 2023
sunset color pallate
saw this view from the bridge.
couldn’t wait to get home and figure out thise hexcodes.
immediately thought:
make a css template with it
vim/ textastic/ mweb colorschemes
want that terminal rice in i3

Friday, November 3, 2023
notes on vim tables
tables
vimwiki
just make pipes it auto aligns
pipe and 3 dashes will do horizontal lines
== VIMWIKITABLE CMDS ==
- :VimwikiTableAddRowAbove
- :VimwikiTableAddRowBelow
- :VimwikiTableDeleteRow
- :VimwikiTableAddColBefore
- :VimwikiTableDeleteCol
== markdown-toc ==
-
ajorgensen/vim-markdown-toc
:GenMarkdownTOC:
:UpdateMarkdownTOC:- Align by a Delimiter:
:Tabularize: /: Align lines based on a specified delimiter.
For example, to align lines by equal signs, use :Tabularize /=.
Align by Regular Expression:
- Align by a Delimiter:
:Tabularize: /<regular_expression>: Align lines based on a regular expression.
For example, to align lines by spaces or tabs, use :Tabularize /\s+.
Align by a Range:
:Tabularize: /
For example, to align lines within a visual selection, use :'<,'>Tabularize /=.
Custom Alignment:
-
You can specify a custom alignment character or string. For example, :Tabularize: / / will align lines using spaces.
Automatic Alignment with Operators: -
In normal mode, select the lines you want to align.
Then, use the :Tabularize: command to automatically align the selected lines based on the delimiter, regex, or alignment character you specify.
Repeat the Last Tabularize Command:
:Tabularize (without any arguments) will repeat the last Tabularize command with the same arguments.
Visual Mode Alignment:
- In visual mode, select the text you want to align.
Then, press :, and Vim will automatically add '<,'> to the command for aligning the selected visual block.
Custom Mappings:
You can create custom mappings in your .vimrc to quickly apply Tabularize to common delimiters or regex patterns. For example:
nnoremap
- This mapping allows you to align text by commas by typing
a in normal mode.
== table mode ==
| name | price |
| phil | 3 |
| susan | 5 |
| janice | 8 |
| doreen | 39 |
| cordelia | 12 |
| --------------------+------- | |
| total | 67.0 |
%% tmf: $8,2=Sum(2:-1)
leader tt = csv to table
:Tableize
leader tm = :TableModeToggle
- then you can pipe away
- double pipe does horiz sep
== moving ==
bracket / curly brace + pipe
== editing ==
ci| = change in cell /
ca| = change around cell
leader tdd = delete row
leader tdc = delete column
leader tic = insert col
== formulas ==
leader tfa =:TableAddFormula
leader tfe = evaluate
leader t? also eval (no need it auto evaluates)
Sum(2:-1) that means col 2 and -1 = row above current line
Sum(2,2:-1) 2,2 is start at col 2 row 2
when you specify a pair of values eg 2,2 its specific to that row
when you just have 1 its the whole column.
:TableModeEnable:
Enables table mode for the current buffer.
:TableModeDisable: Disables table mode for the current buffer.
:TableModeRealign: Realigns the table columns.
:TableModeAutoFormat: Automatically formats the table by aligning columns.
:TableModeToggle: Toggles between enabling and disabling table mode.
:TableModeToggleInsertMode: Toggles between insert mode and normal mode for a table cell.
Table Navigation:
|: Move to the next cell in the table.
j and k (in Normal mode): Move between rows.
H and L (in Normal mode): Move to the first and last cells in the current row, respectively.
gh and gl (in Normal mode): Navigate between columns.
[[ and ]]: Jump to the previous and next table.
Text Objects:
iat: Select the entire table.
iab: Select the current cell.
a|: Select the current column.
ir: Select the current row.
Other Useful Shortcuts:
folds and diff
zf - manually define a fold up to motion
zd - delete fold under the cursor
za - toggle fold under the cursor
zo - open fold under the cursor
ze - close fold under the cursor
zr - reduce (open) all folds by one level
zm - fold more (close) all folds by one level
zi - toggle folding functionality
]c - jump to start of next change
[c - jump to start of previous change
do or :diffg[et] - obtain (get) difference (from other buffer)
ap or :diffpu[t] - put difference (to other buffer)
:diffthis - make current window part of diff
:dif[fupdate] - update differences
:diffo[ff] - switch off diff mode for current window
Tip The commands for folding (e.g. za ) operate on one level. To
operate on all levels, use uppercase letters (e.g. zA).
Tip To view the differences of files, one can directly start Vim in diff mode by running vimdiff in a terminal. One can even set this as git difftool
Thursday, November 2, 2023
awk simple 2 col csv sum
multi cursor editing in vim
Wednesday, November 1, 2023
textastic theme
the best theme = "tommorow night eighties" w roboto mono font.
Friday, October 27, 2023
args and buffers
link to an article
faster vim workflow with buffers and argsArgs
:args *
:n / :p
:wn
:arga = add
:argd= delete
buffers
:ls
:bn /bp
substitution
- argdo
- bufdo
%s/method1/method2/g | update
autocomplete in vim no plugins needed
HTML
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
- then ctrl X ctrl o on tag to show list
- ctrl n/ ctrl p to move through the list
CSS
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
Javascript
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
Filenames
- ctrl x ctrl f
- ctrl n/ ctrl p
Monday, October 23, 2023
vim html editing
When editing the contents of an HTML tag or changing the tag type in Vim, there are several useful shortcuts and techniques you can use:
-
Inside Tag Editing:
- To edit the contents within the current HTML tag, place your cursor inside the tag and press
ci>(change inside>). This will change everything within the tag, but leave the tag itself intact.
- To edit the contents within the current HTML tag, place your cursor inside the tag and press
-
Changing the Tag Type:
- To change the HTML tag itself, place your cursor on the tag you want to change, and use the following commands:
- To change a
<div>to a<span>, for example, you can usecit(change inside tag) and type<span>. - If you want to change a
<div>to a<p>, you can usecitand type<p>. - To change a
<span>to a<div>, you can usecitand type<div>.
- To change a
- To change the HTML tag itself, place your cursor on the tag you want to change, and use the following commands:
-
Tag Surroundings:
- If you want to surround an element with a new tag, you can use the
surround.vimplugin, which allows you to visually select text and then specify a new tag to surround it. For example, you can select a block of text, pressS, and then type the new tag you want to wrap around it.
- If you want to surround an element with a new tag, you can use the
-
HTML Commenting:
- To comment out an HTML tag or a block of code, you can use the following shortcuts:
gccto comment a single line.:x,ys/old/new/gto replaceoldwithnewin linesxthroughy(e.g.,:1,5s/<div>/<p>/gto replace<div>with<p>in lines 1 through 5).
- To comment out an HTML tag or a block of code, you can use the following shortcuts:
-
Changing Case:
- To change the case of an HTML tag (e.g., from lowercase to uppercase), you can visually select the tag and use the
~key to toggle the case.
- To change the case of an HTML tag (e.g., from lowercase to uppercase), you can visually select the tag and use the
-
Auto-pairing Plugins:
- Consider using Vim plugins like
auto-pairsorsurround.vim, which can assist in auto-closing and modifying HTML tags.
- Consider using Vim plugins like
Saturday, October 21, 2023
budget friendly 60 % keyboards I saw that I liked at Canada Computers
| Keyboard | Price |
|---|---|
| AULA F3287 Wired TKL | $29.99 |
| Redragon K613 Jax | $39.99 |
| Redragon Kumara K552 | $39.99 |
| Redragon K616 black+red Bluetooth Wireless | $49.99 |
| Redragon Jax Pro (K613P) Bluetooth | $59.99 |
| Redragon K530 Pro-red switch 60% Wireless | $64.99 |
AULA F3287
k613 JAX
Kumara K552
K616 black + red
K613p JAX pro
K530 pro w red switches
Honorable mention
iCAN 87 Key Rainbow Backlit Gaming Keyboard, 1.5M Cable (Black)(Open Box)17.99 open box
Thursday, October 19, 2023
squarebeat
ios tracker sequencer just released. it can load auv3 plugins!! its so wicked!!
a jungle demo track on youtube

doesnt have keyboard shortcuts but its been well optimized well for the small touch interface of a phone. easier than sunvox, you dont need to be a genius to use. Thats a big deal, most of the time trackers seem too complicated. its alot more like renoise reminds me a bit of lgpt. can load auv3 effects on seperate mix busses and import your own samples. its free to try but doesnt let you save or export the unlock iap is 17 bucks canadian
vim args
In Vim, "args" typically refer to the list of files you're working with, and Vim provides several shortcuts and commands to work with this argument list. Here are some common Vim shortcuts and commands for working with arguments:
-
:args <file1> <file2> ...- Set the argument list to a specific list of files. -
:args *.txt- Set the argument list to all files matching a pattern (e.g., all .txt files in the current directory). -
:argadd <file>- Add a file to the argument list. -
:argdelete- Remove the current file from the argument list. -
:args- List all files in the current argument list. -
:argnext(or:an) - Go to the next file in the argument list. -
:argprev(or:ap) - Go to the previous file in the argument list. -
:argfirst- Go to the first file in the argument list. -
:arglast- Go to the last file in the argument list. -
:argdo <command>- Execute a command on all files in the argument list. For example,:argdo :%s/foo/bar/gwould replace "foo" with "bar" in all files. -
:args $mylist- Set the argument list from a variable. -
:argopen- Open all files in the argument list in separate windows. -
:arglist- Display the argument list and the cursor position within each file.
Wednesday, October 18, 2023
AFP Share: open raspberri pi using mac finder
sudo apt install netatalk
sudo nano /etc/netatalk/afp.conf
** inside that file add to bottom **
[Homes]
basedir regex = /home
sudo systemctl restart netatalk
how to set up a pip venv
urls
Tuesday, October 17, 2023
alias
batch.txt
amethyst window manager
| shortcut | action |
|---|---|
| ctrl alt shift t | toggle amethyst |
| alt shift t | toggle float for active window |
| ctrl alt shift z | refresh amethyst |
| alt shift j/k | cycle active window |
| alt shift h/l | resize windows |
| ctrl alt shift j/k | swap active windows |
| ctrl alt shift # | throws active window to a space |
Thursday, October 12, 2023
incrementing in vim
- Ctrl A/ Ctrl Z increments a single number up and down - ctrl v, g ctrl a/ ctrl z does all the numbers at once ** it doesnt work on old vim 7