sublime-vim/Sublime-vim.md
2024-06-26 13:48:46 +00:00

65 lines
1.4 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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
`<LineNo> + c + G` -> delete from current line to <LineNo> and start insert mode
`c + $` || `C` -> change evrything that comes after the cursor
`c + c` -> Change this line
`f + <char>` -> foward find
`F + <char>` -> backward find
`Ctrl + o` -> Go backward in jump list
`Ctrl + i` -> Go fwd in jump list
`v + F + <char>` -> Select from current cursor position backwards until <char>
`Esc + <num> + i + <char> Esc` -> Insert <char> <num> times
== 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)