added vim
This commit is contained in:
parent
a31112267b
commit
4056d0c5e3
16
Sublime-sublime.md
Normal file
16
Sublime-sublime.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
```
|
||||||
|
sublime.log_commands(True)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Yo, column selections??
|
||||||
|
|
||||||
|
https://www.sublimetext.com/docs/column_selection.html
|
||||||
|
|
||||||
|
Right Mouse Button + Shift
|
||||||
|
|
||||||
|
OR: Middle Mouse Button
|
||||||
|
|
||||||
|
Add to selection: Ctrl
|
||||||
|
|
||||||
|
Subtract from selection: Alt
|
|
@ -9,7 +9,16 @@ Vim config file: C:\Users\jadonm\AppData\Local\nvim\init.lua
|
||||||
`gll` - indent item right
|
`gll` - indent item right
|
||||||
`glh` - indent item left
|
`glh` - indent item left
|
||||||
|
|
||||||
== vim ==
|
== vim (NeoVintageous) ==
|
||||||
|
|
||||||
|
-- Toggle NeoVintageous on/off --
|
||||||
|
Install: NeoVintageous Toggle (https://github.com/NeoVintageous/NeoVintageousToggle)
|
||||||
|
Add keybinding: { "keys": ["ctrl+alt+t"], "command": "neovintageous_toggle" }
|
||||||
|
|
||||||
|
Then: `ctrl+alt+t` -> toggle on/off
|
||||||
|
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
|
||||||
`x` -> cut current selection
|
`x` -> cut current selection
|
||||||
`y` -> copy current selectio
|
`y` -> copy current selectio
|
||||||
|
|
9
ThoughtLog.md
Normal file
9
ThoughtLog.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# ThoughtLog :: Sublime + NeoVintageous
|
||||||
|
|
||||||
|
Okay so I think it's safe to say NeoVintageous is super cool - and has a bunch of super sweet editing and navigation features.
|
||||||
|
But... it's kinda "not complete" and some core workflows such as copy-pasting to and from system clipboard does not work correctly (see the project roadmap)
|
||||||
|
|
||||||
|
|
||||||
|
I have no doubt the a subsection of the vim motions/key bindings/etc will be super useful lonterm. But not all of it - and not inside sublime.
|
||||||
|
|
||||||
|
What if.... forked neovintaggous and removed the stuff we dont really need?
|
72
Useful-neovim.md
Normal file
72
Useful-neovim.md
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
Vim config file: C:\Users\jadonm\AppData\Local\nvim\init.lua
|
||||||
|
|
||||||
|
This applies to neovim only
|
||||||
|
|
||||||
|
== 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>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
== File/Directory Navigation ==
|
||||||
|
|
||||||
|
`<leader> + <leader>` : search open buffers
|
||||||
|
|
||||||
|
== Config ==
|
||||||
|
|
||||||
|
`<leader> + s + n` : Open config
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
== 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)
|
Loading…
Reference in New Issue
Block a user