From 1b24a9adbea0c99c8e2ec5310fee7101a5053a91 Mon Sep 17 00:00:00 2001 From: hophacker Date: Wed, 4 Aug 2021 12:59:14 +0800 Subject: [PATCH] nvim map for ToggleBlameLine, add/modify README --- README.md | 49 ++++++++++++-------- SpaceVim.d/autoload/settings/yadr-keymap.vim | 3 ++ 2 files changed, 33 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 0471833..c950552 100644 --- a/README.md +++ b/README.md @@ -189,16 +189,43 @@ SPC g . | Enter version control transient-state SPC l p | Preview markdown **Typescript** + Shortcut | Function :-------:|:--------: SPC l p | Definitaion Preview -SPC l t | Type +SPC l t | Type SPC l e | Rename SPC l d | Doc -g d | Go to definition -SPC e L | List checkers +g d | Go to definition +SPC e L | List checkers + +**Tab** +Shortcut | Function +:--------:|:--------: +\\[1-9] | Open tab 1-9 +SPC t t | Open tab management window +SPC w F | Open a new tab +SPC w o | Switch tab + +**History** +Shortcut | Function +:--------:|:--------: +`F7` | Undo history + + +**Debug** +Shortcut | Function +:-----------:|:--------: +SPC h I | Show Debug Info + +**Git** +Shortcut | Function +:-------:|:--------: + b | Togggle git blame info at the end of current line + gb | Open git blame window #### markdown + * Install `prettier`: `yarn global add prettier` or `npm install --global prettier` * Open vim and enter command: `:SPUPdate` @@ -264,22 +291,6 @@ The interface elements of SpaceVim start with [SPC] t or [SPC] T. You can view t - `SPC c l` - toggle comment lines - `SPC c p` - toggle comment paragraphs -#### Switch Tab: -When multiple files are opened, the files will be listed in the tab bar in the form of Tabs, and you can switch to the Tab with the corresponding serial number via `\[1-9]`. - -- `\[1-9]` - Open tag 1-9 - -#### History -Shortcut | Function -:--------|:-------- -`F7` | Undo history - - -#### Debug -Shortcut | Function -:-----------|:-------- -SPC h I | Show Debug Info - ## iTerm ### iTerm Solarized Colors diff --git a/SpaceVim.d/autoload/settings/yadr-keymap.vim b/SpaceVim.d/autoload/settings/yadr-keymap.vim index b07d3c6..4b92b36 100644 --- a/SpaceVim.d/autoload/settings/yadr-keymap.vim +++ b/SpaceVim.d/autoload/settings/yadr-keymap.vim @@ -318,3 +318,6 @@ nnoremap tp :call TogglePaste() nnoremap ,tt :call ToggleRspecTest() vmap js :!python -m json.tool + +" nvim-blame-line +nnoremap b :ToggleBlameLine