diff options
| author | srdusr <[email protected]> | 2022-12-26 18:39:20 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2022-12-26 18:39:20 +0200 |
| commit | 7121e742b732040203e3c07fe5823e70c5c41baf (patch) | |
| tree | a4f5bf9d08e386a2cb75547522f28b0532317b55 /cheatsheets/syntax.wiki | |
| parent | f3466c604f09164239fefade9ab077c17961a771 (diff) | |
| download | notes-7121e742b732040203e3c07fe5823e70c5c41baf.tar.gz notes-7121e742b732040203e3c07fe5823e70c5c41baf.zip | |
Add syntax cheatsheet for vim.wiki
Diffstat (limited to 'cheatsheets/syntax.wiki')
| -rw-r--r-- | cheatsheets/syntax.wiki | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/cheatsheets/syntax.wiki b/cheatsheets/syntax.wiki new file mode 100644 index 0000000..7ac8f3d --- /dev/null +++ b/cheatsheets/syntax.wiki @@ -0,0 +1,104 @@ + += Links = +[[Link]] # Use double square brackets to make a link +[[test/Link]] # Use '/' to make a path or a new directory with a link +[[test/Link2|Description of link]] # Use | to give a description of a link to the right and the left side is the location + += Headers = # Goes upto 6 levels +== Header Level 2== +=== Header Level 3=== +==== Header Level 4==== +===== Header Level 5===== +====== Header Level 6====== + += Lists = +- Bullet +* Also Bullet +1. Number +2) Also Number +a) Same idea +B) And Again +i) Roman numerials +II) Also this +# Finally this + += Indenting = +- this is level 1 + ii) can make a child + c) great for making a hierachy + IV) and so on... + += Definitions = +singleTerm:: singleDefinition +Term:: +:: Definition 1 +:: Definition 2 + += Toggleable list of todo items = +* [X] Toggleable list item +ii) [ ] ^space to toggle anywhere on line + - [ ] right after making a list character you can press space then the keybinding + - [ ] + += Text Formatting = +Regular +*bold* # Use astretriks on either side +_italic_ # Use underscores +superScript^something in between karots^ # Doesn't really work in terminal, rather html +subsScript,,same story as above,, # But with two commas + +{{{ + Ignore + Formatting defined + by Syntax + can space/indent however you + want. +}}} + +{{{go + +package main + +import ( + "log" + "net/http" +) + +func main() { + +} + +# Have to exit to show syntax highlighting + +}}} + += Tables = +| Text | | *random* | | | +|------|-------|----------|----|------| +| go | to | end | of | line | +| and | press | enter | | | + += Key Words = +TODO, DONE, STARTED, FIXME, FIXED, XXX + += Anchor = +[[#Tables]] # Anchor tag to file using '#' and square brackets, if no arguement then +[[test#Tables|This is a description]] + += Raw URLS = +https://www.google.com +mailto:[email protected] +ftp:addressToFTP + += External Files = +file:[[~/path/to/file.mp4]] +[[file:~/path/to/file.mp4|file.mp4]] # Use of a Description + + +---- += Misc = +%% This is a comment and won't show up in HTML + +HR +---- + |