{"id":22821969,"url":"https://github.com/zavvdev/nvim-setup","last_synced_at":"2026-05-19T07:10:00.993Z","repository":{"id":217193631,"uuid":"743268112","full_name":"zavvdev/nvim-setup","owner":"zavvdev","description":"Minimal Neovim setup.","archived":false,"fork":false,"pushed_at":"2026-04-04T12:46:04.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-04T14:45:23.872Z","etag":null,"topics":["neovim","nvim","nvim-configs","nvim-lua"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zavvdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-14T20:30:31.000Z","updated_at":"2026-04-04T12:46:07.000Z","dependencies_parsed_at":"2024-04-10T18:43:45.716Z","dependency_job_id":"eb70ee7c-8021-4d29-8668-72954437c85b","html_url":"https://github.com/zavvdev/nvim-setup","commit_stats":null,"previous_names":["zavvdev/nvim-setup"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zavvdev/nvim-setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavvdev%2Fnvim-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavvdev%2Fnvim-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavvdev%2Fnvim-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavvdev%2Fnvim-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zavvdev","download_url":"https://codeload.github.com/zavvdev/nvim-setup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavvdev%2Fnvim-setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33205682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"online","status_checked_at":"2026-05-19T02:00:06.763Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["neovim","nvim","nvim-configs","nvim-lua"],"created_at":"2024-12-12T16:09:59.586Z","updated_at":"2026-05-19T07:10:00.981Z","avatar_url":"https://github.com/zavvdev.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Neovim Setup\n\nMinimum plugins used.\n\n## Prerequisites\n\n1. [Neovim](https://neovim.io/) should be installed.\n\n2. [Git](https://git-scm.com/) should be installed.\n\nCheck where the configuration lives on your system. On macOS it's in _~/.config/nvim_.\n\nEverything inside the _nvim_ folder in this repository should be placed in _~/.config/nvim_.\n\n## Keybindings\n\nLeader key: `Space`. The Leader key is pressed before a keybinding combination.\n\n### File System\n\nFrom netrw:\n\n1. Create a file: `f f`.\n\n2. Create a directory: `f d`.\n\n3. Edit the name of the file/directory under the cursor: `f e`.\n\n4. Delete the file or empty directory under the cursor: `f r`.\n\n#### Moving Files\n\nFrom netrw:\n\n1. Mark a directory as the target: `Shift Tab`. This is required when moving or copying files to that directory.\n\n2. Mark/unmark a file or directory: `Tab`.\n\n3. Unmark all marked files and directories: `Leader Tab`.\n\n4. Copy marked files/directories to the target directory: `f c`.\n\n5. Copy marked files/directories to the directory under the cursor: `f C`.\n\n6. Move marked files/directories to the target directory: `f x`.\n\n7. Move marked files/directories to the directory under the cursor: `f X`.\n\n8. Run a shell command on marked files/directories: `f ;`.\n   For example, mark a non-empty directory, use _f ;_, then type _rm -r_ to delete it.\n\n#### Navigation\n\nFrom netrw:\n\n1. Bookmark the current directory: `f b`.\n\n2. Remove the most recent bookmark: `f b r`.\n\n3. Go to the previous bookmarked directory: `f b g`.\n\n4. Show a list of marked files: `f l m`.\n\n5. Change to the directory under the cursor: `c d`.\n\n6. Move up one directory: `-`.\n\n7. Open the file tree (from a file): `Leader e`.\n\n8. Open a file in a new tab: place the cursor on a file/directory and press `t`.\n\n9. Navigate to an open tab by number: `Ngt`, where N is the tab number.\n\n#### Global Search\n\n1. Search in files: `Leader s f`.\n\n2. Search in git files: `Leader s f g`.\n\n3. Search for the word under the cursor in files: `Leader s w`.\n\n4. Search by grep: `Leader s g`.\n\n5. Find recently opened files: `Leader ?`.\n\n#### File\n\n1. Show a list of errors in the current file: `Leader s i`.\n\n2. Search for a pattern in the file: `?`.\n\n3. Search for the word under the cursor: `*`.\n\n4. Go to a specific line in the file: `:\u003cline number\u003e`.\n\n5. Format the file according to formatting rules: `Leader f m`.\n\n6. Line-comment selected lines: `g c c`.\n\n7. Block-comment selected lines: `g b c`.\n\n8. Go to the very top of the file: `g g`.\n\n9. Go to the very bottom of the file: `G`.\n\n10. Toggle autocomplete in insert mode: `Shift Tab`.\n\n11. Scroll down: `Ctrl d`.\n\n12. Scroll up: `Ctrl u`.\n\n13. Copy to clipboard: `\" + y`.\n\n14. Add a multi-line prefix: `Leader a a`, add text to the beginning of the first line, `Esc`.\n\n15. Remove a multi-line prefix: `Leader a r`, select the prefix, `x`.\n\n16. Split vertically: press `v` on a file in netrw.\n\n17. Split vertically: `Leader v` from a file.\n\n18. Open the current file in a new tab: `Leader t` from a file.\n\n19. Increase window width: `Leader \u003e`.\n\n20. Decrease window width: `Leader \u003c`.\n\n21. Equalize split sizes: `Leader =`.\n\n22. Place the cursor on a number in normal mode and press `A` to increment or `X` to decrement it.\n\n### LSP\n\n1. Hover over a variable/function to show details: `K`.\n\n2. Go to definition: `g d`.\n\n3. Show code actions: `Leader c a`.\n\n### Git Diff\n\n1. Open diff view: `Leader d v`.\n\n2. Close diff view: `Leader d v c`.\n\n3. Open diff view for the current file: `Leader d v f`.\n\nFor more information about resolving merge conflicts in diff view, press `g ?` while in diff view.\n\n### Packages\n\n1. Open the package manager: `:Mason`.\n\nFor more information about plugins, see the [Mason](https://github.com/mason-org/mason.nvim) documentation.\n\n## Other Useful Keybindings\n\n### Cursor Movement\n\n`e` - jump forwards to the end of a word.\n\n`b` - jump backward to the end of a word.\n\n`%` - move the cursor to a matching character (default supported pairs: `()`, `{}`, `[]` — use `:h matchpairs` in Vim for more info).\n\n`0` - jump to the start of the line.\n\n`^` - jump to the first non-blank character of the line.\n\n`$` - jump to the end of the line.\n\n`g_` - jump to the last non-blank character of the line.\n\n`gg` - go to the first line of the document.\n\n`G` - go to the last line of the document.\n\n`}` - jump to the next paragraph (or function/block when editing code).\n\n`{` - jump to the previous paragraph (or function/block when editing code).\n\n### Insert Mode — Inserting/Appending Text\n\n`i` - insert before the cursor.\n\n`I` - insert at the beginning of the line.\n\n`a` - insert (append) after the cursor.\n\n`A` - insert (append) at the end of the line.\n\n`o` - append (open) a new line below the current line.\n\n`O` - append (open) a new line above the current line.\n\n`ea` - insert (append) at the end of the word.\n\n`Ctrl + w` - delete the word before the cursor.\n\n`Ctrl + t` - indent (move right) the line one shiftwidth.\n\n`Ctrl + d` - de-indent (move left) the line one shiftwidth.\n\n`Ctrl + n` - insert the next autocomplete match before the cursor.\n\n`Ctrl + p` - insert the previous autocomplete match before the cursor.\n\n### Editing\n\n`r` - replace a single character.\n\n`R` - replace more than one character until ESC is pressed.\n\n`J` - join the line below to the current one with one space in between.\n\n`cc` - change (replace) the entire line.\n\n`c$` or `C` - change (replace) to the end of the line.\n\n`cw` or `ce` - change (replace) to the end of the word.\n\n`s` - delete the character and substitute text (same as `cl`).\n\n`S` - delete the line and substitute text (same as `cc`).\n\n`u` - undo.\n\n`Ctrl + r` - redo.\n\n`.` - repeat the last command.\n\n### Marking Text (Visual Mode)\n\n`v` - start visual mode; mark lines, then run a command (e.g. `y` to yank).\n\n`V` - start linewise visual mode.\n\n`Ctrl + v` - start visual block mode.\n\n`a(` - a block with `()`.\n\n`a{` - a block with `{}`.\n\n`at` - a block with `\u003c\u003e` tags.\n\n`i(` - inner block with `()`.\n\n`i{` - inner block with `{}`.\n\n`it` - inner block with `\u003c\u003e` tags.\n\n### Visual Commands\n\n`\u003e` - shift text right.\n\n`\u003c` - shift text left.\n\n`y` - yank (copy) marked text.\n\n`d` - delete marked text.\n\n`~` - switch case.\n\n`u` - change marked text to lowercase.\n\n`U` - change marked text to uppercase.\n\n### Marks and Positions\n\n`ma` - set the current position as mark A.\n\n`` `a `` - jump to the position of mark A.\n\n`` `. `` - go to the position of the last change in this file.\n\n`g,` - go to a newer position in the change list.\n\n`g;` - go to an older position in the change list.\n\n### Macros\n\n`qa` - record macro a.\n\n`q` - stop recording the macro.\n\n`@a` - run macro a.\n\n`@@` - rerun the last run macro.\n\n### Cut and Paste\n\n`yy` - yank (copy) a line.\n\n`Nyy` - yank (copy) N lines downward.\n\n`Ny\u003cup|down\u003e` - yank (copy) N lines up or down.\n\n`yw` - yank (copy) characters from the cursor position to the start of the next word.\n\n`yiw` - yank (copy) the word under the cursor.\n\n`y$` or `Y` - yank (copy) to the end of the line.\n\n`p` - put (paste) clipboard contents after the cursor.\n\n`P` - put (paste) before the cursor.\n\n`dd` - delete (cut) a line.\n\n`Ndd` - delete (cut) N lines downward.\n\n`Nd\u003cup|down\u003e` - delete (cut) N lines up or down.\n\n`dw` - delete (cut) characters from the cursor position to the start of the next word.\n\n`:g/{pattern}/d` - delete all lines containing a pattern.\n\n`:g!/{pattern}/d` - delete all lines not containing a pattern.\n\n`d$` or `D` - delete (cut) to the end of the line.\n\n`x` - delete (cut) a character.\n\n### Indent Text\n\n`\u003e\u003e` - indent (move right) the line one shiftwidth.\n\n`\u003c\u003c` - de-indent (move left) the line one shiftwidth.\n\n`\u003e%` - indent a block with `()` or `{}` (cursor on brace).\n\n`\u003c%` - de-indent a block with `()` or `{}` (cursor on brace).\n\n### Exiting\n\n`:w` - write (save) the file without exiting.\n\n`:wq` - write (save) and quit.\n\n`:q` - quit (fails if there are unsaved changes).\n\n`:qa` - quit all (fails if there are unsaved changes).\n\n`:q!` - quit and discard unsaved changes.\n\n`:wqa` - write (save) and quit all tabs.\n\n### Search and Replace\n\n`/pattern` - search for a pattern.\n\n`?pattern` - search backward for a pattern.\n\n`n` - go to the next match.\n\n`N` - go to the previous match.\n\n`:%s/old/new/g` - replace all occurrences of old with new throughout the file.\n\n`:%s/old/new/gc` - replace all occurrences with confirmation.\n\n`:%s/old/new/gi` - replace all occurrences, case-insensitive.\n\n`:%s/old/new/gI` - replace all occurrences, case-sensitive.\n\n`:%s/old/new/gIc` - replace all occurrences, case-sensitive, with confirmation.\n\n---\n\nYou can find more Vim commands [here](https://vim.rtorr.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzavvdev%2Fnvim-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzavvdev%2Fnvim-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzavvdev%2Fnvim-setup/lists"}