Vim

related: Neovim

tabs to space

Execute the following while the file is open and in normal mode.

:set tabstop=4 shiftwidth=4 expandtab 
:retab

Bash

find . -iname '*.md' -type f -exec bash -c 'expand -t 4 "$0" | sponge "$0"' {} \;

Vim insert keys

i : insert before cursor
a : insert after cursor
s : insert on cursor

How to configure vim for Latex
There are a lot of snippets showcase using Ultisnip and other latex specific things inside.

shift + k : show the docs for the function

How I'm able to take notes in mathematics lectures using LaTeX and Vim | Gilles Castel
Vim and latex

Append at the end for all lines

:%norm A*

This is what it means:

 %       = for every line
 norm    = type the following commands
 A*      = append '*' to the end of current line

source: regex - How can I add a string to the end of each line in Vim? - Stack Overflow

Here are some shortcuts that I always use in Obsidian (as well as in nvim).

One more thing that I use rarely but so glad it exists is the ability to do multi-cursor insert.

For instance, if you have a list of items, but you forgot to add - in front, what you can do is, go to the start of the line, press Ctrl + V, it will change to column select mode, you can go down j to select more lines, then once you're ready, you can do Shift + i and insert - or any other character or string you want. This trick is very useful if you need to add something to multiple lines at once.