notes/Resources/dev/neovim.md
2023-05-04 13:46:51 +00:00

49 lines
913 B
Markdown

# Neovim Knowledge
## Disable Highlighting from search until the next search
```bash
:noh
```
## Go to specific line
```vim
42G
:42<CR>
```
## Surround stuff (with the vim-surround plugin)
**surround word**
```bash
viwS<Input Character to surround>
```
## Change Multiple Occurrences of the same word
```bash
*ciw n.n.n.n.n
```
## Delete multiple Occurrences of the same selection
```bash
# Enter Visual selection
# Select what you want to delete
dgn,dgn,dgn
```
## A tale of Buffers, Splits and Tabs
**Buffers**, are proxies for files, e.g. save a buffer -> its content gets written to a file.
Multiple buffers can be open at the same time
**Split** are a way to show multiple buffers at the same time.
Split Horizontal `<C-w>h`
Split Vertical `<C-w>v`
Resize splits with mouse is easiest
**Tabs**
Move to next Tab `gt`
Move to previous Tab `gT`
move to specific Tab `3gt` -> remapped to `<leader>3`