From 02cadd2b47aaac9a5c842c7cff233bd4004218dc Mon Sep 17 00:00:00 2001 From: Jadon-Jesse Date: Fri, 21 Jun 2024 01:49:04 +0200 Subject: [PATCH] First commit to my own code hosting platform....<3 --- Sublime-vim.md | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Sublime-vim.md diff --git a/Sublime-vim.md b/Sublime-vim.md new file mode 100644 index 0000000..b67e8a3 --- /dev/null +++ b/Sublime-vim.md @@ -0,0 +1,63 @@ +# Sublime-vim + +Vim config file: C:\Users\jadonm\AppData\Local\nvim\init.lua + +== vimwiki == + +`[[` - jump to prev header +`]]` - jump to next header +`gll` - indent item right +`glh` - indent item left + +== vim == + +`x` -> cut current selection +`y` -> copy current selection +`p` -> paste + +`Ctrl + f` - scroll page forward one screen +`Ctrl + d` - scroll page forward Half screen + +`Ctrl + b` - scroll page backwards one screen +`Ctrl + u` - scroll page backwards half screen + +`Shift + 5` (aka %) - jump to matching bracket +`v` + `Shift + 5` - select between brackets + +:%d             -> delete every line +:%y             -> yank every line +:%normal! >>    -> indent every line + +:$              -> Go to end of file + +`gg` - Go to Top + +`Shift + g` - Go to bottom + + +` + c + G` -> delete from current line to and start insert mode + + +`c + $` || `C` -> change evrything that comes after the cursor +`c + c` -> Change this line + +`f + ` -> foward find +`F + ` -> backward find + +`Ctrl + o` -> Go backward in jump list +`Ctrl + i` -> Go fwd in jump list + +`v + F + ` -> Select from current cursor position backwards until + + + + + +== LSP == +Hide/disable diagnostics (verbose lsp) + +:lua vim.diagnostic.hide() (will only side) +:lua vim.diagnostic.show() (will only side) + +:lua vim.diagnostic.disable() (will disable globally) +:lua vim.diagnostic.enable() (will only side) \ No newline at end of file