Basic setup for neovim based on ThePrimeagen video.
Start installing all dependencies: neovim
, gcc
and ripgrep
, example:
sudo pacman -S neovim gcc ripgrep
Then, install Packer, a neovim package manager:
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
Finally, install my neovim setup:
git clone https://github.com/thigcampos/nvim ~/.config/nvim
Default neovim command remaps.
<leader>xf
- Exit File<C-u>
- Go half-page up<C-d>
- Go half-page down<leader>ex
- Exit file and go to files
<leader>s
- Subsitute the word that you were on<leader><leader>
- Source the current filed
- Delete content and move it to register x<leader>d
- Delete selected content without moving it to register xJ
- Move down the selected contentK
- Move up the selected content
y
- Copy content to register x<leader>y
- Copy content to system clipboardp
- Paste content from register x<leader>p
- Paste register x content without changing the register content
<leader>ff
- Find Files<leader>fg
- Find Git Files<leader>fs
- Find String
<leader>gs
- Git Status
<leader>af
- Add File<leader>sf
- Show Files<C-k>
- Previous File<C-j>
- Next File