#NerdFont https://www.nerdfonts.com/font-downloads
Font: MesoloLG
Use font-manager
install it by using sudo apt-get install font-manager
Set the Font in Your Terminal: Open the preferences/settings of your terminal and set the newly installed font as the default.
#install Neovim
#install NVChad
git clone https://github.com/NvChad/NvChad ~./.config/nvim -depth 1
we need version 0.8 and above
nvim --version
sudo apt remove neovim
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt update
sudo apt install neovim
in nvChad change theme by using SPACE t h
command
use :TSInstall to add new langauges TSInstallInfo to find available languages
ctrl+n
for navigation tree
in navigation tree - press a
to start creating a new file
press c
to copy a file and r
to paste a file
to find a file SPACE f f
to search in files that are open SPACE f b
to bring up cheetsheet SPACE c h
press SPACE
and wait to get suggestions
open new panes with :vsp
vertical split or :sp
for split. navigate using j,k,l,i keys
use 'space h' or 'space v' to open terminal window
In Neovim (and Vim), you start in Normal Mode by default. To enter Edit Mode, you have several options, each placing you in a slightly different editing context:
- Insert Before Cursor (
i
): Pressi
to start inserting text before the cursor. - Insert at the Beginning of the Line (
I
): PressI
to start inserting text at the beginning of the line. - Insert After Cursor (
a
): Pressa
to start inserting text after the cursor. - Insert at the End of the Line (
A
): PressA
to start inserting text at the end of the line. - Insert on a New Line Below (
o
): Presso
to open a new line below the current line and start inserting. - Insert on a New Line Above (
O
): PressO
to open a new line above the current line and start inserting.
- Replace Single Character (
r
): Pressr
followed by any character to replace the character under the cursor. - Replace Mode (
R
): PressR
to enter Replace Mode. This will overwrite characters in the line as you type.
- Visual Mode (
v
): Pressv
to start selecting text character by character. - Visual Line Mode (
V
): PressV
to select entire lines. - Visual Block Mode (
Ctrl-v
): PressCtrl-v
to select text in a rectangular block.
Once you're in Visual Mode, you can move the cursor to select text. After that, you can press c
to change the selected text, effectively entering Edit Mode for the selected block of text.
- Command-Line Mode (
:
): Press:
to enter Command-Line Mode, where you can enter commands like:w
to save,:q
to quit, etc.
To exit any of the Edit Modes and go back to Normal Mode, press Esc
.
Each of these modes serves a specific purpose and allows you to interact with the text in a particular way. As you become more familiar with Neovim, you'll find yourself switching between these modes seamlessly.