{"id":15714668,"url":"https://github.com/sglavoie/better-vim-experience","last_synced_at":"2026-05-07T07:46:24.109Z","repository":{"id":115394503,"uuid":"122900741","full_name":"sglavoie/better-vim-experience","owner":"sglavoie","description":"Tips and tricks for Vim/Neovim, vimrc/init.vim, using Python in Vim, etc.","archived":false,"fork":false,"pushed_at":"2021-09-20T00:22:37.000Z","size":967,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T22:40:04.667Z","etag":null,"topics":["neovim","python","python-3","tmux","vim","vim-configs","vimrc"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sglavoie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2018-02-26T02:23:13.000Z","updated_at":"2022-10-02T23:16:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"97fb88e1-f88e-4be5-b8aa-4763193e9a43","html_url":"https://github.com/sglavoie/better-vim-experience","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sglavoie%2Fbetter-vim-experience","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sglavoie%2Fbetter-vim-experience/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sglavoie%2Fbetter-vim-experience/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sglavoie%2Fbetter-vim-experience/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sglavoie","download_url":"https://codeload.github.com/sglavoie/better-vim-experience/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246372503,"owners_count":20766626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","python","python-3","tmux","vim","vim-configs","vimrc"],"created_at":"2024-10-03T21:39:17.092Z","updated_at":"2026-05-07T07:46:24.060Z","avatar_url":"https://github.com/sglavoie.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tips and tricks for [Vim](https://github.com/vim/vim) / [Neovim](https://github.com/neovim/neovim)\n\n[Link to up-to-date current Neovim configuration file](https://github.com/sglavoie/dotfiles/tree/master/.config/nvim).\n\n## Table of Contents\n\n\u003c!-- vim-markdown-toc GFM --\u003e\n\n* [General Tips And Tricks](#general-tips-and-tricks)\n  * [Display the main help buffer in a new tab](#display-the-main-help-buffer-in-a-new-tab)\n  * [Remove all whitespace at the end of every line in the buffer](#remove-all-whitespace-at-the-end-of-every-line-in-the-buffer)\n  * [Add newline without leaving normal mode and stay on current line](#add-newline-without-leaving-normal-mode-and-stay-on-current-line)\n  * [Completions with Ctrl+x (eXpand)](#completions-with-ctrlx-expand)\n\n\u003c!-- vim-markdown-toc --\u003e\n\n---\n\n## General Tips And Tricks\n\nThis is obviously far from being an exhaustive list: those are some tips and tricks that I have found useful.\n\n### Display the main help buffer in a new tab\n\n```vim\n   \" Display help in new tab\n   nnoremap \u003cleader\u003eh :tabnew\u003cCR\u003e:help\u003cCR\u003e\u003cC-w\u003e\u003cC-w\u003e:quit\u003cCR\u003e\n```\n\nThis is useful to maximize the help window and read more easily. You can quickly switch back to the next tab with the keystrokes `gt` (especially useful if you don't have any other tab opened). Simply do `:q` on the help tab and you're back to work!\n\n### Remove all whitespace at the end of every line in the buffer\n\nThis also works for lines that only contain whitespace. It keeps the line in place but remove the extra space(s) or tab(s) that might have been left by accident.\n```vim\n   noremap \u003cF5\u003e :%s/\\s\\+$//\u003cCR\u003e:echo 'all whitespace removed.'\u003cCR\u003e\n```\n\n### Add newline without leaving normal mode and stay on current line\n\n```vim\n   nnoremap \u003cM-o\u003e o\u003cEsc\u003e\n   nnoremap \u003cM-S-O\u003e O\u003cEsc\u003e\n```\n\n### Completions with Ctrl+x (eXpand)\n\nThose are the combinations that I tend to use the most.\n\n- `Ctrl + x  Ctrl + p` will find a word and suggest a list to complete it. If there's only a match, it is automatically inserted.\n- `Ctrl + x  Ctrl + l` will complete a whole line automatically if there's only one match, else it will suggest a list.\n- `Ctrl + x  Ctrl + k` will complete a word from the dictionary.\n- `Ctrl + x  Ctrl + ]` will complete a word from available tags.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsglavoie%2Fbetter-vim-experience","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsglavoie%2Fbetter-vim-experience","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsglavoie%2Fbetter-vim-experience/lists"}