mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 00:25:47 +02:00
4.9 KiB
4.9 KiB
HOME
Demo
Treesitter dan LSP
Plugins Manager
Javascript Project
NeoVim Install & Configuration Guide
Visit Wiki
Basic Requirement
- Install Neovim 9.0+ https://github.com/neovim/neovim/releases/tag/stable
- C++ (windows) Compiler https://www.msys2.org/
- GIT https://git-scm.com/download/win
- NodeJs https://nodejs.org/en/
- Ripgrep https://github.com/BurntSushi/ripgrep
- Lazygit https://github.com/jesseduffield/lazygit
- Nerd Font https://github.com/ryanoasis/nerd-fonts
- Windows Terminal (Windows) https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701?hl=en-id&gl=id
- Powershell (windows) https://apps.microsoft.com/store/detail/powershell/9MZ1SNWT0N5D?hl=en-id&gl=id
Windows
git clone https://github.com/pojokcodeid/nvim-lazy-basic.git "$env:LOCALAPPDATA\nvim"
nvim
Linux
git clone https://github.com/pojokcodeid/nvim-lazy-basic.git ~/.config/nvim
Shortcut Most-Used
:q or :quit -> untuk keluar dari form
:w or :write -> untuk menulis hasil ketik kedalam file (simpan)
:wq -> simpan dan keluar
:q! -> Keluar dan jangan simpan
escape -> normalmode
i -> insert mode
v -> visual mode yaratnya harus normal mode dulu, ini unutk block dengan panah ke bawah dan tekan d untuk deletenya
H -> kiri
j -> bawah
k -> atas
l -> Kanan
:ter -> untuk membuka terminal
0 atau home -> memindahkan kursor keawal line
$ atau end -> cursor ke end of line
gg -> memindahkan kursor ke paling atas
G -> memindahkan kursor ke akhir dari halaman
w -> memindahkan kursor ke kata berikutnya tanpa sepasi
3w -> memindahkan kursor ke 3 kata berikutnya
b -> memindahkan kursor ke kata sebelumnya
3b -> memindahkan kursor ke 3 kata sebelunya
( -> memindahkankursor ke paragraf seblumnya
) -> memindahkan kursor ke pararaf berikutnya
dd -> menghapus text 1 baris
dw -> menghapus 1 kata
d$ -> menghapus kata sampai akhir line dari posisi cursor
d0 -> menghapus kata sampai awal line dari psosi cursor
U -> untuk undo
CTRL + r -> Rendo
Yp -> duplicate line code
yyp -> sama duplicate line code
:m+1 -> pindah 1 baris kebawah
:m-1 -> pindah 1 baris keatas
d -> delete file, delete code yang di seleksi dengan view mode
:e newfolder/newfile.ext -> membuat file baru di folder baru
:f newfolder/newfile.ext -> untuk mengcopy file dari file yang terbuka
bdw -> menghapus 1 kata
dw -> menghapus ke kanan dalam 1 kata pada posisi cursor
Thanks To
https://github.com/LunarVim/Neovim-from-scratch
https://github.com/AstroNvim/AstroNvim