Neovim
설치
- Arch Linux
- Debian
- macOS
sudo pacman -S neovim
sudo ln -s `which nvim` /usr/local/bin/vim
sudo snap install --beta nvim --classic
sudo snap alias nvim vim
brew install neovim
NvChad
git clone https://github.com/NvChad/starter ~/.config/nvim && nvim
정보
starter를 수정해서 git에 저장해두고 사용해도 됩니다. e.g., https://github.com/hhk7734/custom.nvim
./
├── init.lua
├── LICENSE
├── lua/
│ ├── chadrc.lua
│ ├── configs/
│ │ ├── conform.lua
│ │ ├── lazy.lua
│ │ └── lspconfig.lua
│ ├── mappings.lua
│ ├── options.lua
│ └── plugins/
│ └── init.lua
└── README.md
키 매핑
<C>
: Ctrl<A>
: Alt<S>
: Shift<leader>
: Space<CR>
: Enter:
,;
,<cmd>
: 커맨드
LSP
- https://nvchad.com/docs/config/lsp
- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
Nvterm
<A-h>
: 수평 터미널 토글<A-v>
: 수직 터미널 토글<A-i>
: 터미널 모달 토글<leader>pt
: 터미널 목록
NvCheatsheet
<leader>ch
Normal mode
:h key-notation
: key notation
u
: undo<C-r>
: redo
=
: align e.g., gg=G, =3<C-k>
: clang-format (설정한 경우)
:! <command>
: shell에서<command>
를 실행합니다.:r[ead]! <command>
: stdout -> vim:w[rite]! <command>
: vim -> stdin
<C-a>
: 숫자 증가<C-x>
: 숫자 감소
Visual mode
u
: 소문자로 변환<S-u>
: 대문자로 변환