Compare commits
2 commits
8013e0bd62
...
8571a7b1b5
| Author | SHA1 | Date | |
|---|---|---|---|
| 8571a7b1b5 | |||
| 23f4cf315b |
3 changed files with 7 additions and 3 deletions
|
|
@ -1,8 +1,7 @@
|
||||||
# Neovim command and keybind cheat sheet
|
# Neovim cheat sheet
|
||||||
|
|
||||||
## BASICS
|
## BASICS
|
||||||
|
|
||||||
- `;` leader key
|
|
||||||
- `:checkhealth [<pluginname>]` check base or plugin status
|
- `:checkhealth [<pluginname>]` check base or plugin status
|
||||||
- `:checkhealth vim.lsp` show details of LSP attached to buffer
|
- `:checkhealth vim.lsp` show details of LSP attached to buffer
|
||||||
- `:verbose set expandtab?` check where `expandtab` has been set last
|
- `:verbose set expandtab?` check where `expandtab` has been set last
|
||||||
|
|
@ -89,6 +88,7 @@
|
||||||
- `cc` replace whole line
|
- `cc` replace whole line
|
||||||
- `C` replace to the end of the line
|
- `C` replace to the end of the line
|
||||||
- `yy` copy the current line
|
- `yy` copy the current line
|
||||||
|
- `yygccp` comment and copy the current line
|
||||||
- `yap` "yank-around-paragraph"
|
- `yap` "yank-around-paragraph"
|
||||||
- `yip` "yank-inside-paragraph"
|
- `yip` "yank-inside-paragraph"
|
||||||
- `yaW` copy word w/ dashes/underscores
|
- `yaW` copy word w/ dashes/underscores
|
||||||
|
|
@ -121,3 +121,4 @@
|
||||||
- `gf` open file under cursor in a new buffer
|
- `gf` open file under cursor in a new buffer
|
||||||
- `gx` open link under cursor in default browser
|
- `gx` open link under cursor in default browser
|
||||||
- `*` search word under cursor
|
- `*` search word under cursor
|
||||||
|
- `Ctrl`+`l` remove search highlight
|
||||||
|
|
|
||||||
BIN
CHEATSHEET.pdf
BIN
CHEATSHEET.pdf
Binary file not shown.
|
|
@ -47,7 +47,10 @@ vim.api.nvim_create_autocmd("TextYankPost", {
|
||||||
desc = "Highlight when yanking (copying) text",
|
desc = "Highlight when yanking (copying) text",
|
||||||
group = vim.api.nvim_create_augroup("weeheavy-highlight-yank", { clear = true }),
|
group = vim.api.nvim_create_augroup("weeheavy-highlight-yank", { clear = true }),
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.highlight.on_yank()
|
vim.highlight.on_yank({
|
||||||
|
higroup = "IncSearch",
|
||||||
|
timeout = 100,
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue