From d59f4cc7b705d42b7f5549c58fb0ab1adcb01e7a Mon Sep 17 00:00:00 2001 From: juan Date: Thu, 19 Aug 2021 15:55:00 +0800 Subject: [PATCH] remove fcitx5 and added nvim bindings --- .config/fcitx5/conf/classicui.conf | 15 ------- .config/fcitx5/conf/notifications.conf | 3 -- .config/fcitx5/conf/rime.conf | 5 --- .config/fcitx5/conf/spell.conf | 5 --- .config/fcitx5/config | 62 -------------------------- .config/nvim/init.vim | 10 +++++ 6 files changed, 10 insertions(+), 90 deletions(-) delete mode 100644 .config/fcitx5/conf/classicui.conf delete mode 100644 .config/fcitx5/conf/notifications.conf delete mode 100644 .config/fcitx5/conf/rime.conf delete mode 100644 .config/fcitx5/conf/spell.conf delete mode 100644 .config/fcitx5/config diff --git a/.config/fcitx5/conf/classicui.conf b/.config/fcitx5/conf/classicui.conf deleted file mode 100644 index f97114a..0000000 --- a/.config/fcitx5/conf/classicui.conf +++ /dev/null @@ -1,15 +0,0 @@ -# Vertical Candidate List -Vertical Candidate List=False -# Use Per Screen DPI -PerScreenDPI=True -# Use mouse wheel to go to prev or next page -WheelForPaging=True -# Font -Font="Sans 12" -# Menu Font -MenuFont="Sans 12" -# Use input method langauge to display text -UseInputMethodLangaugeToDisplayText=True -# Theme -Theme=Nord-Dark - diff --git a/.config/fcitx5/conf/notifications.conf b/.config/fcitx5/conf/notifications.conf deleted file mode 100644 index 6e7d1b9..0000000 --- a/.config/fcitx5/conf/notifications.conf +++ /dev/null @@ -1,3 +0,0 @@ -# Hidden Notifications -HiddenNotifications= - diff --git a/.config/fcitx5/conf/rime.conf b/.config/fcitx5/conf/rime.conf deleted file mode 100644 index 1f93cf0..0000000 --- a/.config/fcitx5/conf/rime.conf +++ /dev/null @@ -1,5 +0,0 @@ -# Show preedit within application -PreeditInApplication=True -# Commit current text when deactivating -Commit when deactivate=True - diff --git a/.config/fcitx5/conf/spell.conf b/.config/fcitx5/conf/spell.conf deleted file mode 100644 index 25197e3..0000000 --- a/.config/fcitx5/conf/spell.conf +++ /dev/null @@ -1,5 +0,0 @@ -[ProviderOrder] -0=Presage -1=Custom -2=Enchant - diff --git a/.config/fcitx5/config b/.config/fcitx5/config deleted file mode 100644 index 7c71f58..0000000 --- a/.config/fcitx5/config +++ /dev/null @@ -1,62 +0,0 @@ -[Hotkey] -# Enumerate when press trigger key repeatedly -EnumerateWithTriggerKeys=True -# Temporally switch between first and current Input Method -AltTriggerKeys= -# Enumerate Input Method Forward -EnumerateForwardKeys= -# Enumerate Input Method Backward -EnumerateBackwardKeys= -# Skip first input method while enumerating -EnumerateSkipFirst=False -# Enumerate Input Method Group Forward -EnumerateGroupForwardKeys= -# Enumerate Input Method Group Backward -EnumerateGroupBackwardKeys= -# Activate Input Method -ActivateKeys= -# Deactivate Input Method -DeactivateKeys= - -[Hotkey/TriggerKeys] -#0=Control+space - -[Hotkey/PrevPage] -0=Up - -[Hotkey/NextPage] -0=Down - -[Hotkey/PrevCandidate] -0=Shift+Tab - -[Hotkey/NextCandidate] -0=Tab - -[Hotkey/TogglePreedit] -0=Control+Alt+P - -[Behavior] -# Active By Default -ActiveByDefault=False -# Share Input State -ShareInputState=All -# Show preedit in application -PreeditEnabledByDefault=True -# Show Input Method Information when switch input method -ShowInputMethodInformation=True -# Show Input Method Information when changing focus -showInputMethodInformationWhenFocusIn=True -# Show compact input method information -CompactInputMethodInformation=True -# Show first input method information -ShowFirstInputMethodInformation=True -# Default page size -DefaultPageSize=5 -# Force Enabled Addons -EnabledAddons= -# Force Disabled Addons -DisabledAddons= -# Preload input method to be used by default -PreloadInputMethod=True - diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 21359a4..16ba342 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -109,6 +109,16 @@ nmap b (easymotion-B) " fix intending. vmap < >gv +" make Y behave like other Capitalized letters +nnoremap Y y$ +" n/N also centered +nnoremap n nzzzv +nnoremap N Nzzzv +" undo to the last , . or ! +inoremap , ,u +inoremap . .u +inoremap ! !u +inoremap ? ?u " Shortcutting split navigation map h map j