This configuration is based on nvimdots, and make modification for individual demand. Simplified version
- Linux, MacOS, Windows WSL
if command -v curl >/dev/null 2>&1; then
bash -c "$(curl -fsSL https://raw.githubusercontent.com/12Jack21/nvim/HEAD/scripts/install.sh)"
else
bash -c "$(wget -O- https://raw.githubusercontent.com/12Jack21/nvim/HEAD/scripts/install.sh)"
fi<leader>: " " (<space>)<C-p>will show the command palettes, to check the keyboard shortcuts
-
statusline show file path
-
code comment with
<leader>gc -
lazy.nvimdisable plugins: neoscroll: animation during cursor movement -
toggle float term
<A-d>, horizontal<A-h>, vertical<A-v>in normal mode -
nvim-treesitter will failed at the first setup, then succeed when you coding
-
<A-*>is unavailable in tmux environment -
Theme selection: catppucin-frappe, catppucin-macchiato, edge
-
tab switch use
<M-j><A-k>, close current usi¬ng<M-q> -
<C-g>show the file path -
<A-l>out of some pairs like "", '', {},<A-o>go back -
use
<A-o> <A-p>to move between iTerm2 panes -
use
<C-]>in nvimtree to enter a directory and show it as root folder -
use
m{letter}to add bookmark and'{letter}or " `{letter} " to go to that bookmark -
use
project.nvimto manage your project directories, it will use the folder where you open nvim as the root directory -
use
<z-a><z-A>or<S-tab>to fold/unfold current block, see more in<z-leadding key-combination -
nvim-surroundplugin:ds[to delete text inside [],cs[(change [ to ( pair,ysiw{add { pair to selected word -
use "`bt" to run lldb command in dap (use lldb-vscode adapter)
-
use nvim file modifiers here
-
If a keyboard shortcut does not work in neovim, consider the terminal emulator (e.g. iTerm2) do not map specific key to some weird behaviors, like
<S-F5>key -
The location list is exactly same as quickfix, just that it's private to each window, quickfix is global to neovim.
-
clever-f.nvimextend the function off/Fandt/T, usef{char}find a word match, then hitfmultiple times to find next match -
use
<leader>dlto make dap run last debug session again -
use
<leader><backspace>to show more shortcuts -
use
<Cmd>set wrap/nowrapto wrap/nowrap the current window -
use
todo-comments.nvimfor TODO stuff -
mason stuff will be stored in
~/.local/share/nvim/mason/bin/ -
lazy.nvim use
pin=trueto prevent update for modified plugin -
tmux -CC attach -t SESSION_NAMEnew window in iTerm2 profile