2022-02-22 11:27:27 +01:00
|
|
|
# Neovim Knowledge
|
|
|
|
|
|
|
|
## Disable Highlighting from search until the next search
|
|
|
|
```bash
|
|
|
|
:noh
|
|
|
|
```
|
|
|
|
|
|
|
|
## Go to specific line
|
2023-05-04 15:46:51 +02:00
|
|
|
```vim
|
2022-02-22 11:27:27 +01:00
|
|
|
42G
|
2023-05-04 15:46:51 +02:00
|
|
|
:42<CR>
|
2022-02-22 11:27:27 +01:00
|
|
|
```
|
2022-04-25 16:51:38 +02:00
|
|
|
|
|
|
|
## 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
|
|
|
|
```
|
2022-06-05 18:53:01 +02:00
|
|
|
|
|
|
|
## 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`
|