jvinhit//lab

Search posts

Type to search across journal entries.

navigate open esc close

Series · 12 parts

Neovim từ Gà mờ đến Pro

Series tiếng Việt giúp bạn chuyển từ VSCode sang Neovim một cách thực dụng, theo chuẩn 2025-2026: modal editing, Lua config, lazy.nvim, native LSP mới với vim.lsp.config/vim.lsp.enable, completion, formatter/linter, Treesitter, fuzzy finder, Git, terminal, debug/test, dotfiles và một capstone cấu hình hoàn chỉnh. Mỗi phần có cheatsheet, bài tập và checklist để luyện thành phản xạ thật.

  1. Lộ trình học Neovim 2025-2026: mental model, setup hiện đại, kỹ năng cần luyện, stack plugin nên dùng và cách đi từ gà mờ đến pro.

  2. Dựng cấu hình Neovim sạch từ đầu: init.lua, options, keymaps, autocommands, leader key, backup config và health check.

  3. Học ngôn ngữ thao tác text của Vim: modes, operators, motions, text objects, registers, macros và bài tập luyện phản xạ.

  4. Không lạc trong project lớn: hiểu file, buffer, window, tab, quickfix, arglist và workflow mở/sửa nhiều file trong Neovim.

  5. Cài lazy.nvim, chia plugin specs, hiểu lazy-loading, dependencies, opts/config, lockfile, update và cách không biến config thành mớ rối.

  6. Setup LSP hiện đại với vim.lsp.config, vim.lsp.enable, nvim-lspconfig, mason-lspconfig, diagnostics, keymaps và blink.cmp stable.

  7. Tách rõ formatter, linter, LSP và Treesitter: setup conform.nvim, nvim-lint, parser/highlight, format-on-save và checklist debug.

  8. Thay Command Palette của VSCode bằng picker, live grep, quickfix, LSP references, symbols, rename và workflow refactor an toàn.

  9. Dựng workflow hằng ngày trong Neovim: gitsigns, terminal tích hợp, test runner, debug mindset, quickfix và khi nào nên dùng shell.

  10. Map thói quen VSCode sang Neovim: explorer, command palette, terminal, search, multicursor, snippets, settings, extensions và lộ trình 30 ngày.

  11. Giữ Neovim nhanh và bền: profiling, checkhealth, lockfile, update plugin, backup, sync dotfiles, debug config và chống plugin bloat.

  12. Gom toàn bộ series thành một setup Neovim hoàn chỉnh: cấu trúc file, plugin specs, keymaps, checklist cài đặt và cheatsheet dùng hằng ngày.