https://github.com/samwhelp/tool-svim-core
tool-svim-core
https://github.com/samwhelp/tool-svim-core
svim vim
Last synced: about 1 year ago
JSON representation
tool-svim-core
- Host: GitHub
- URL: https://github.com/samwhelp/tool-svim-core
- Owner: samwhelp
- License: mit
- Created: 2019-04-03T09:56:01.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-07T14:46:20.000Z (about 5 years ago)
- Last Synced: 2025-02-08T20:12:27.012Z (over 1 year ago)
- Topics: svim, vim
- Language: Vim script
- Homepage: https://samwhelp.github.io/tool-svim-doc
- Size: 16.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tool-svim-core
* [tool-svim-core](https://samwhelp.github.io/tool-svim-core) ([GitHub](https://github.com/samwhelp/tool-svim-core))
## Vim Doc
* [tool-svim-doc](https://samwhelp.github.io/tool-svim-doc)
* :help [keycodes](https://vimhelp.org/intro.txt.html#keycodes)
* :help [normal-index](https://vimhelp.org/index.txt.html#normal-index)
* :help [insert-index](https://vimhelp.org/index.txt.html#insert-index)
## Vimrc
* [tool-svim](https://github.com/samwhelp/tool-svim)
## Key Binding
* [Leader Key](#leader-key)
* [Quick Switch](#quick-switch)
* [Window Resize](#window-resize)
* [Window Create](#window-create)
* [Delete Buffer](#delete-buffer)
* [Quit](#quit)
* [Hide](#hide)
* [Close](#close)
* [Only](#only)
* [Buffers](#buffers)
* [Registers](#registers)
* [Marks](#marks)
* [Save](#save)
* [TabPage](#tabpage)
* [Switch TabPage](#switch-tabpage)
* [Tab Move](#tab-move)
* [Line Move](#line-move)
## Leader Key
| Key | Map | Notice |
| --- | --- | --- |
| `,` | for main use | vim [,](https://vimhelp.org/motion.txt.html#,) orginal had function |
| `\` | for sub use | vim [leader](https://vimhelp.org/map.txt.html#mapleader) default is [backslash](https://vimhelp.org/intro.txt.html#backslash) |
| `t` | for TabPage | vim [t](https://vimhelp.org/motion.txt.html#t) orginal had function |
> About orginal [,](https://vimhelp.org/motion.txt.html#,) and [t](https://vimhelp.org/motion.txt.html#t), please read vim [f](https://vimhelp.org/motion.txt.html#f), [F](https://vimhelp.org/motion.txt.html#F), [t](https://vimhelp.org/motion.txt.html#t), [T](https://vimhelp.org/motion.txt.html#T), [;](https://vimhelp.org/motion.txt.html#;), [,](https://vimhelp.org/motion.txt.html#,).
> Please read :help [normal-index](https://vimhelp.org/index.txt.html#normal-index)
> Please read :help [,](https://vimhelp.org/motion.txt.html#,)
> Please read :help [t](https://vimhelp.org/motion.txt.html#t)
I use (,) and (t) for my leader key.
## Quick Switch
| Key | Map | Description |
| --- | --- | --- |
| `` | [C-w W](https://vimhelp.org/windows.txt.html#CTRL-W_W) | To Previous Window |
| `` | [C-w w](https://vimhelp.org/windows.txt.html#CTRL-W_w) | To Next Window |
| `` | [:bprevious](https://vimhelp.org/windows.txt.html#:bprevious)<CR> | To Previous Buffer |
| `` | [:bnext](https://vimhelp.org/windows.txt.html#:bnext)<CR> | To Next Buffer |
| `` | [:tabprevious](https://vimhelp.org/tabpage.txt.html#:tabprevious)<CR> | To Previous TabPage |
| `` | [:tabnext](https://vimhelp.org/tabpage.txt.html#:tabnext)<CR> | To Next TabPage |
## Window Resize
| Key | Map |
| --- | --- |
| `` | [<C-w>-](https://vimhelp.org/windows.txt.html#CTRL-W_-) |
| `` | [<C-w>+](https://vimhelp.org/windows.txt.html#CTRL-W_+) |
| `` | [<C-w><](https://vimhelp.org/windows.txt.html#CTRL-W_<) |
| `` | [<C-w>>](https://vimhelp.org/windows.txt.html#CTRL-W_>) |
## Window Create
| Key | Map | Description |
| --- | --- | --- |
| `,wn` | [:new](https://vimhelp.org/windows.txt.html#:new)<CR> | Create a new window horizontally. |
| `,wv` | [:vnew](https://vimhelp.org/windows.txt.html#:vnew)<CR> | Create a new window vertically. |
> Please read :help [window](https://vimhelp.org/windows.txt.html#:window).
> Please compare :help [:split](https://vimhelp.org/windows.txt.html#:split).
> Please compare :help [:vsplit](https://vimhelp.org/windows.txt.html#:vsplit).
## Delete Buffer
| Key | Map | Description | Notice |
| --- | --- | --- | --- |
| `,q` | [:bdelete](https://vimhelp.org/windows.txt.html#:bdelete)<CR> | delete current buffer | single |
| `,z` | [:bdelete!](https://vimhelp.org/windows.txt.html#:bdelete)<CR> | force delete current buffer | single |
| `,x` | [:%bdelete](https://vimhelp.org/windows.txt.html#:bdelete)<CR> | delete all buffer | all |
| `,c` | [:%bdelete!](https://vimhelp.org/windows.txt.html#:bdelete)<CR> | force delete all buffer | all |
## Quit
| Key | Map | Description | Notice |
| --- | --- | --- | --- |
| `\q` | [:q](https://vimhelp.org/editing.txt.html#:q)<CR> | quit | single |
| `\z` | [:q!](https://vimhelp.org/editing.txt.html#:q)<CR> | force quit | single |
| `\x` | [:qa](https://vimhelp.org/editing.txt.html#:qa)<CR> | quit all | all |
| `\c` | [:qa!](https://vimhelp.org/editing.txt.html#:qa)<CR> | force quit all | all |
> Please read :help ['confirm'](https://vimhelp.org/options.txt.html#'confirm').
## Hide
| Key | Map | Description | Notice |
| --- | --- | --- | --- |
| `,h` | [:hide](https://vimhelp.org/windows.txt.html#:hide)<CR> | hide current buffer | single |
> Compare with `,x`, `,c`, `\x`, `\c`, `,h`。
## Close
| Key | Map | Description |
| --- | --- | --- |
| `,wc` | [:close](https://vimhelp.org/windows.txt.html#:close)<CR> | Close the current window |
## Only
| Key | Map | Description |
| --- | --- | --- |
| `,wa` | [:only](https://vimhelp.org/windows.txt.html#:only)<CR> | to close other window, then all buffer will hide, if set [hidden](https://vimhelp.org/options.txt.html#'hidden'). |
| `twa` | [:tabonly](https://vimhelp.org/tabpage.txt.html#:tabonly)<CR> | wa to close other tabpage, then all buffer will hide, if set [hidden](https://vimhelp.org/options.txt.html#'hidden'). |
## Buffers
| Key | Map | Description |
| --- | --- | --- |
| `,b` | [:ls](https://vimhelp.org/windows.txt.html#:ls)<CR> | Show all buffers. |
## Registers
| Key | Map | Description |
| --- | --- | --- |
| `,r` | [:registers](https://vimhelp.org/change.txt.html#:registers)<CR> | Display all Registers. |
## Marks
| Key | Map | Description |
| --- | --- | --- |
| `,m` | [:marks](https://vimhelp.org/motion.txt.html#:marks)<CR> | List all the current marks. |
## Save
| Key | Map | Description | Notice |
| --- | --- | --- | --- |
| `` | [:w](https://vimhelp.org/editing.txt.html#:w)<CR> | Write the whole buffer to the current file. | Work on Normal Mode and Insert Mode |
## TabPage
| Key | Map | Description |
| --- | --- | --- |
| `ts` | [:tab split](https://vimhelp.org/tabpage.txt.html#:tab)<CR> | Opens current buffer in new tab page |
| `tg` | [:tabnew](https://vimhelp.org/tabpage.txt.html#:tabnew)<CR> | New TabPage |
| `tf` | [:tabnew](https://vimhelp.org/tabpage.txt.html#:tabnew)<CR>[:edit](https://vimhelp.org/editing.txt.html#:edit)<Space> | New tabpage and wait for user input file path |
| `te` | [:tabedit](https://vimhelp.org/tabpage.txt.html#:tabedit)<Space> | Edit file on new tabpage. |
### Switch TabPage
| Key | Map | Description |
| --- | --- | --- |
| `tp` | [:tabprevious](https://vimhelp.org/tabpage.txt.html#:tabprevious)<CR> | To Previous TabPage |
| `tn` | [:tabnext](https://vimhelp.org/tabpage.txt.html#:tabnext)<CR> | To Next TabPage |
| Key | Map | Description |
| --- | --- | --- |
| `th` | [:tabprevious](https://vimhelp.org/tabpage.txt.html#:tabprevious)<CR> | To Previous TabPage |
| `tl` | [:tabnext](https://vimhelp.org/tabpage.txt.html#:tabnext)<CR> | To Next TabPage |
| `tj` | [:tabfirst](https://vimhelp.org/tabpage.txt.html#:tabfirst)<CR> | To First TabPage |
| `tk` | [:tablast](https://vimhelp.org/tabpage.txt.html#:tablast)<CR> | To Last TabPage |
> Compare with [Quick Switch](#quick-switch) `` and `` .
### Tab Move
| Key | Map | Description |
| --- | --- | --- |
| `tu` | [:-tabmove](https://vimhelp.org/tabpage.txt.html#:tabmove)<CR> | Tab Move to Left |
| `ti` | [:+tabmove](https://vimhelp.org/tabpage.txt.html#:tabmove)<CR> | Tab Move to Right |
| Key | Map | Description |
| --- | --- | --- |
| `tmh` | [:-tabmove](https://vimhelp.org/tabpage.txt.html#:tabmove)<CR> | Tab Move to Left |
| `tml` | [:+tabmove](https://vimhelp.org/tabpage.txt.html#:tabmove)<CR> | Tab Move to Right |
| `tmj` | [:0tabmove](https://vimhelp.org/tabpage.txt.html#:tabmove)<CR> | Tab Move to First |
| `tmk` | [:$tabmove](https://vimhelp.org/tabpage.txt.html#:tabmove)<CR> | Tab Move to Last |
## Line Move
| Key | Map | Description | Notice |
| --- | --- | --- | --- |
| `` | [:m-2](https://vimhelp.org/change.txt.html#:m)<CR> | Move line up. | Work on Normal Mode and Insert Mode |
| `` | [:m+](https://vimhelp.org/change.txt.html#:m)<CR> | Move line Down. | Work on Normal Mode and Insert Mode |