{"id":23058069,"url":"https://github.com/samwhelp/vim-plugin-switch-key-with-space-vim","last_synced_at":"2025-04-03T06:16:08.339Z","repository":{"id":90412195,"uuid":"179918284","full_name":"samwhelp/vim-plugin-switch-key-with-space-vim","owner":"samwhelp","description":"vim-plugin-switch-key-with-space-vim","archived":false,"fork":false,"pushed_at":"2020-02-20T09:46:55.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T20:12:27.653Z","etag":null,"topics":["space-vim","vim","vim-plugin"],"latest_commit_sha":null,"homepage":"https://github.com/liuchengxu/space-vim/issues/394","language":"Vim script","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/samwhelp.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":"2019-04-07T04:34:36.000Z","updated_at":"2020-02-20T09:46:57.000Z","dependencies_parsed_at":"2023-03-12T09:46:24.970Z","dependency_job_id":null,"html_url":"https://github.com/samwhelp/vim-plugin-switch-key-with-space-vim","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/samwhelp%2Fvim-plugin-switch-key-with-space-vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwhelp%2Fvim-plugin-switch-key-with-space-vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwhelp%2Fvim-plugin-switch-key-with-space-vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwhelp%2Fvim-plugin-switch-key-with-space-vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samwhelp","download_url":"https://codeload.github.com/samwhelp/vim-plugin-switch-key-with-space-vim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246944385,"owners_count":20858772,"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":["space-vim","vim","vim-plugin"],"created_at":"2024-12-16T02:14:20.434Z","updated_at":"2025-04-03T06:16:08.321Z","avatar_url":"https://github.com/samwhelp.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-plugin-switch-key-with-space-vim\n\n* vim-plugin-switch-key-with-space-vim ([GitHub](https://github.com/samwhelp/vim-plugin-switch-key-with-space-vim))\n\n\n## Browse\n\n* [My Map](#my-map)\n* [Howto Install](#howto-install)\n\n\n## Introduction\n\nThis vim plugin is fit key map for my self with [space-vim](https://github.com/liuchengxu/space-vim).\n\n\n## Orignal Map\n\n* :help [normal-index](https://vimhelp.org/index.txt.html#normal-index)\n* space-vim/layers/+distributions/better-defaults/[README.md](https://github.com/liuchengxu/space-vim/blob/master/layers/%2Bdistributions/better-defaults/README.md)\n* space-vim/core/autoload/spacevim/map/[leader.vim](https://github.com/liuchengxu/space-vim/blob/master/core/autoload/spacevim/map/leader.vim)\n*  space-vim/core/autoload/spacevim/map/[localleader.vim](https://github.com/liuchengxu/space-vim/blob/master/core/autoload/spacevim/map/localleader.vim)\n* space-vim/layers/+distributions/better-defaults/[keybindings.vim](https://github.com/liuchengxu/space-vim/blob/master/layers/%2Bdistributions/better-defaults/keybindings.vim)\n* vim-better-default/plugin/[default.vim](https://github.com/liuchengxu/vim-better-default/blob/master/plugin/default.vim)\n* ...\n\n\n## My Map\n\n\u003e Maybe not all. Just introduction. Please read [plugin/FitKey.vim](plugin/FitKey.vim) to find all key map.\n\n\u003e Just fit on Normal Mode\n\n* [Quick Switch](#quick-switch)\n* [Window Resize](#window-resize)\n* [Delete Buffer](#delete-buffer)\n* [Quit](#quit)\n* [Hide](#hide)\n* [Only](#only)\n* [Buffer List](#buffer-list)\n* [Save](#save)\n* [TabPage](#tabpage)\n\n\n## Quick Switch\n\n| Key | Map | Description |\n| --- | --- | --- |\n| `\u003cBackspace\u003e` | [C-w W](https://vimhelp.org/windows.txt.html#CTRL-W_W) | To Previous Window |\n| `\u003cTab\u003e` | [C-w w](https://vimhelp.org/windows.txt.html#CTRL-W_w) | To Next Window |\n| `\u003cCtrl+k\u003e` | [:bprevious](https://vimhelp.org/windows.txt.html#:bprevious)\u0026lt;CR\u0026gt; |  To Previous Buffer |\n| `\u003cCtrl+j\u003e` | [:bnext](https://vimhelp.org/windows.txt.html#:bnext)\u0026lt;CR\u0026gt; | To Next Buffer |\n| `\u003cCtrl+h\u003e` | [:tabprevious](https://vimhelp.org/tabpage.txt.html#:tabprevious)\u0026lt;CR\u0026gt; | To Previous TabPage |\n| `\u003cCtrl+l\u003e` | [:tabnext](https://vimhelp.org/tabpage.txt.html#:tabnext)\u0026lt;CR\u0026gt; | To Next TabPage |\n\n\n## Window Resize\n\n| Key | Map |\n| --- | --- |\n| `\u003cS-Down\u003e` | [\u0026lt;C-w\u0026gt;-](https://vimhelp.org/windows.txt.html#CTRL-W_-) |\n| `\u003cS-Up\u003e` | [\u0026lt;C-w\u0026gt;+](https://vimhelp.org/windows.txt.html#CTRL-W_+) |\n| `\u003cS-Left\u003e` | [\u0026lt;C-w\u0026gt;\u003c](https://vimhelp.org/windows.txt.html#CTRL-W_\u003c) |\n| `\u003cS-Right\u003e` | [\u0026lt;C-w\u0026gt;\u003e](https://vimhelp.org/windows.txt.html#CTRL-W_\u003e) |\n\n\n## Delete Buffer\n\n| Key | Map | Description | Notice |\n| --- | --- | --- | --- |\n| `,q` | [:bdelete](https://vimhelp.org/windows.txt.html#:bdelete)\u0026lt;CR\u0026gt; | delete current buffer | single |\n| `,x` | [:%bdelete](https://vimhelp.org/windows.txt.html#:bdelete)\u0026lt;CR\u0026gt; | delete all buffer | all |\n| `,z` | [:bdelete!](https://vimhelp.org/windows.txt.html#:bdelete)\u0026lt;CR\u0026gt; | force delete current buffer | single |\n| `,c` | [:%bdelete!](https://vimhelp.org/windows.txt.html#:bdelete)\u0026lt;CR\u0026gt; | force delete all buffer | all |\n\n\n## Quit\n\n| Key | Map | Description | Notice |\n| --- | --- | --- | --- |\n| `\\q` | [:q](https://vimhelp.org/editing.txt.html#:q)\u0026lt;CR\u0026gt; | quit | single |\n| `\\x` | [:qa](https://vimhelp.org/editing.txt.html#:qa)\u0026lt;CR\u0026gt; | quit all | all |\n| `\\z` | [:q!](https://vimhelp.org/editing.txt.html#:q)\u0026lt;CR\u0026gt; | force quit | single |\n| `\\c` | [:qa!](https://vimhelp.org/editing.txt.html#:qa)\u0026lt;CR\u0026gt; | force quit all | all |\n\n\u003e Please read :help ['confirm'](https://vimhelp.org/options.txt.html#'confirm').\n\n## Hide\n\n| Key | Map | Description | Notice |\n| --- | --- | --- | --- |\n| `,h` | [:hide](https://vimhelp.org/windows.txt.html#:hide)\u0026lt;CR\u0026gt; | hide current buffer | single |\n\n\n## Only\n\n| Key | Map | Description |\n| --- | --- | --- |\n| `,wa` | [:only](https://vimhelp.org/windows.txt.html#:only)\u0026lt;CR\u0026gt; | to close other window, then all buffer will hide, if set [hidden](https://vimhelp.org/options.txt.html#'hidden'). |\n| `\u003cSpace\u003e\u003cSpace\u003ewa` | [:tabonly](https://vimhelp.org/tabpage.txt.html#:tabonly)\u0026lt;CR\u0026gt; | wa to close other tabpage, then all buffer will hide, if set [hidden](https://vimhelp.org/options.txt.html#'hidden'). |\n\n\u003e Compare with `,x`, `,c`, `\\x`, `\\c`, `,h`。\n\n\n## Buffer List\n\n| Key | Map | Description |\n| --- | --- | --- |\n| `,b` | [:ls](https://vimhelp.org/windows.txt.html#:ls)\u0026lt;CR\u0026gt; | Show all buffers. |\n\n\u003e space-vim Use `\u003cSpace\u003ebb` can list and chose\n\n\n## Save\n\n| Key | Map | Description | Notice |\n| --- | --- | --- | --- |\n| `\u003cS-Tab\u003e` | [:w](https://vimhelp.org/editing.txt.html#:w)\u0026lt;CR\u0026gt; | Write the whole buffer to the current file. | Work on Normal Mode and Insert Mode |\n\n\u003e space-vim Use `\u003cSpace\u003efs` bind [:update](https://vimhelp.org/editing.txt.html#:update)\u0026lt;CR\u0026gt; .\n\n\u003e sapce-vim Use `\u003cS-Tab\u003e` [bind](https://github.com/liuchengxu/space-vim/blob/master/layers/%2Bdistributions/better-defaults/keybindings.vim#L9) [:bp](https://vimhelp.org/windows.txt.html#:bp)\u0026lt;CR\u0026gt; .\n\n\n## TabPage\n\n| Key | Map | Description |\n| --- | --- | --- |\n| `\u003cSpace\u003e\u003cSpace\u003es` | [:tab split](https://vimhelp.org/tabpage.txt.html#:tab)\u0026lt;CR\u0026gt; | Opens current buffer in new tab page |\n| `\u003cSpace\u003e\u003cSpace\u003et` | [:tabnew](https://vimhelp.org/tabpage.txt.html#:tabnew)\u0026lt;CR\u0026gt; | New TabPage |\n| `\u003cSpace\u003e\u003cSpace\u003ef` | [:tabnew](https://vimhelp.org/tabpage.txt.html#:tabnew)\u0026lt;CR\u0026gt;[:edit](https://vimhelp.org/editing.txt.html#:edit)\u0026lt;Space\u0026gt; | New tabpage and wait for user input file path |\n| `\u003cSpace\u003e\u003cSpace\u003ee` | [:tabedit](https://vimhelp.org/tabpage.txt.html#:tabedit)\u0026lt;Space\u0026gt; | Edit file on new tabpage) |\n\n\u003e I use [t](https://github.com/samwhelp/tool-svim-core/blob/master/plugin/Svim.vim#L745) for tabpage. space-vim use `\u003cSpace\u003e\u003cSpace\u003e` for tabpage. It's ok.\n\n\n## My Environment\n\n* ubuntu 18.04\n* lxqt 25\n* xfwm4 4.12.4\n* gnome-terminal 3.28.2\n* qterminal 0.8.0\n* vim 8.0\n* nvim 0.2.2\n\n\n## Related Projects\n\n* [vim-plugin-switch-key-raw-with-space-vim](https://github.com/samwhelp/vim-plugin-switch-key-raw-with-space-vim)\n\n\n## Howto Install\n\n### Install space-vim\n\nPlease install [space-vim](https://github.com/liuchengxu/space-vim) first!\n\nThen config. Just one line.\n\n``` vim\nPlug 'samwhelp/vim-plugin-switch-key-with-space-vim'\n```\n\n### Config ~/.spacevim\n\nYou can edit 「[~/.spacevim](https://github.com/liuchengxu/space-vim/blob/master/init.spacevim#L30)」like this.\n\n``` vim\nfunction! UserInit()\n\tPlug 'samwhelp/vim-plugin-switch-key-with-space-vim'\nendfunction\n```\n\n### :PlugInstall\n\nyou can run [vim](http://manpages.ubuntu.com/manpages/bionic/en/man1/vim.1.html) or [nvim](http://manpages.ubuntu.com/manpages/bionic/en/man1/nvim.1.html), then run [:PlugInstall](https://github.com/junegunn/vim-plug#commands).\n\nor just run on shell.\n\n``` sh\n$ vim -nNRe -c 'try | :PlugInstall | finally | :qa! | entry'\n```\n\nor not quit, run\n\n``` sh\n$ vim -nNRe -c ':PlugInstall'\n```\n\nIt's done.\n\nor can run\n\n``` sh\n$ vim -nNRe +PlugInstall +qa!\n```\n\nor can run\n\n``` sh\n$ vim -nNRe +PlugInstall\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamwhelp%2Fvim-plugin-switch-key-with-space-vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamwhelp%2Fvim-plugin-switch-key-with-space-vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamwhelp%2Fvim-plugin-switch-key-with-space-vim/lists"}