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

913 B

Neovim Knowledge

:noh

Go to specific line

42G
:42<CR>

Surround stuff (with the vim-surround plugin)

surround word

viwS<Input Character to surround>

Change Multiple Occurrences of the same word

*ciw n.n.n.n.n

Delete multiple Occurrences of the same selection

# 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