## Plugins
### Ultisnips
#### Snippets look like this:
```
snippet s "my snippet"
"Hello There"$0
endsnippet
```
#### Global Snippets
This makes The snippet apply the code to all python code blocks used in snippets. This is useful for modular code and defining methods outside of the snippet to be used across many.
`!p` for python, `!v` for Vim script and ` `` ` for bash
```
global !p
code...
endglobal
```
Tab stops
mirrors
visual tokens
default text
shell commands
Vim Script commands
python commands
### vimwiki
- [Getting started with vimwiki](https://blog.mague.com/?p=602)
- [vimwiki cheatsheet](http://thedarnedestthing.com/vimwiki%20cheatsheet)
## Tips and Tricks
### Regex Replacement
Use the command `:` and start typing your replacement `%s/<PATTERN>/<REPLACEMENT>/g` almost like a [[sed]] expression except it contains a `%` at the start which in vim stands for the whole document.
#### To Change All text to Proper Case
`%s/\<./\u&/g`
### Automated Documentation
[[( 2022-03-03 Shift K in Vim]]
### Run Background Shellscript Paste Output
vim or vim mode in vscode `!!` will start a buffer for running a shell script from PATH and put output where cursor is