space-vim icon indicating copy to clipboard operation
space-vim copied to clipboard

Custom key binding with space-vim

Open samwhelp opened this issue 5 years ago • 2 comments

Environment

  • OS:
    • [x] Linux (Ubuntu)
    • [] macOS
    • [] Windows
    • [] FreeBSD
  • Vim:
    • [x] Terminal Vim
    • [] GVim
    • [x] NeoVim

Put the contents of :version below:

Ubuntu 18.04
Vim 8.0
Nvim 0.2.2

Introduction

I write 4 plugin for my custom key binding with space-vim. Share it. Just for Example.

Advance 進階版 (更多對TabPage的操作)

Basic 基本版

我操作的環境在「Ubuntu / lxqt / gnome-terminal / nvim」, 我寫了四個「Plugin」,可以單獨加入「space-vim」, 都只是我個人習慣的按鍵。 主要要加入的是「Quick Switch」這部份。

另外和我原本設定不同的地方,只有一個部份,我有調整, 就是原本我是採用「t」當作「TabPage」操作的開頭鍵, 而看到「space-vim」使用的是「`<Space><Space>」當作「TabPage」操作的開頭鍵, 使用上也還OK,所以就調整成「<Space><Space>``」。

我剛接觸「space-vim」不久, 所以有些功能還沒去嘗試, 也許會有按鍵使用上的衝突沒有考慮到。 我暫時就先做這樣的設定, 我曉得每個人都有自己習慣的按鍵操作模式, 只是提供有自訂按鍵需求的人一個範本, 我的按鍵對應,就請參考「README.md」或是原始碼了。

關於「fit-key」和「switch-key」這兩個版本差異在「fit-key」有更多的「tabpage」操作按鍵綁定。

關於「raw」的版本,則是只有「vim」原始綁定的語法,沒有「raw」的,則是有加入「space-vim」的「desc」。

以上提供參考

報告完畢

:-)

samwhelp avatar Apr 07 '19 14:04 samwhelp

Thanks for sharing.

liuchengxu avatar Apr 07 '19 14:04 liuchengxu

今天加入兩組便利操作的按鍵設定

提供參考

報告完畢

:-)

samwhelp avatar Apr 20 '19 04:04 samwhelp