mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
qwerty...
This commit is contained in:
parent
c102b36474
commit
598597e3ca
5 changed files with 40 additions and 40 deletions
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
fish_vi_key_bindings
|
fish_vi_key_bindings
|
||||||
|
|
||||||
source $DOTFILES/tools/fish/conf.d/keymap/+colemak.fish
|
# source $DOTFILES/tools/fish/conf.d/keymap/+colemak.fish
|
||||||
|
|
||||||
# Emacs Hybrid
|
# Emacs Hybrid
|
||||||
bind -M default ctrl-p up-or-search
|
bind -M default ctrl-p up-or-search
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ local keymaps_basic = { -- Modification of Original Keymap - Colemak
|
||||||
-- https://github.com/LazyVim/LazyVim/blob/d1529f650fdd89cb620258bdeca5ed7b558420c7/lua/lazyvim/config/keymaps.lua#L8
|
-- https://github.com/LazyVim/LazyVim/blob/d1529f650fdd89cb620258bdeca5ed7b558420c7/lua/lazyvim/config/keymaps.lua#L8
|
||||||
{
|
{
|
||||||
mode = mode_arrow,
|
mode = mode_arrow,
|
||||||
keys = "n",
|
keys = "j",
|
||||||
cmd = "v:count == 0 ? 'gj' : 'j'",
|
cmd = "v:count == 0 ? 'gj' : 'j'",
|
||||||
opts = { desc = "Down", expr = true, silent = true },
|
opts = { desc = "Down", expr = true, silent = true },
|
||||||
},
|
},
|
||||||
|
|
@ -16,7 +16,7 @@ local keymaps_basic = { -- Modification of Original Keymap - Colemak
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
mode = mode_arrow,
|
mode = mode_arrow,
|
||||||
keys = "e",
|
keys = "k",
|
||||||
cmd = "v:count == 0 ? 'gk' : 'k'",
|
cmd = "v:count == 0 ? 'gk' : 'k'",
|
||||||
opts = { desc = "Up", expr = true, silent = true },
|
opts = { desc = "Up", expr = true, silent = true },
|
||||||
},
|
},
|
||||||
|
|
@ -29,7 +29,7 @@ local keymaps_basic = { -- Modification of Original Keymap - Colemak
|
||||||
|
|
||||||
{
|
{
|
||||||
mode = "o",
|
mode = "o",
|
||||||
keys = "n",
|
keys = "j",
|
||||||
cmd = "j",
|
cmd = "j",
|
||||||
opts = { desc = "Down", silent = true },
|
opts = { desc = "Down", silent = true },
|
||||||
},
|
},
|
||||||
|
|
@ -41,7 +41,7 @@ local keymaps_basic = { -- Modification of Original Keymap - Colemak
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
mode = "o",
|
mode = "o",
|
||||||
keys = "e",
|
keys = "k",
|
||||||
cmd = "k",
|
cmd = "k",
|
||||||
opts = { desc = "Up", silent = true },
|
opts = { desc = "Up", silent = true },
|
||||||
},
|
},
|
||||||
|
|
@ -53,22 +53,22 @@ local keymaps_basic = { -- Modification of Original Keymap - Colemak
|
||||||
},
|
},
|
||||||
|
|
||||||
{ mode = mode_arrow, keys = "h", cmd = "h", opts = { desc = "Left", silent = true } },
|
{ mode = mode_arrow, keys = "h", cmd = "h", opts = { desc = "Left", silent = true } },
|
||||||
{ mode = mode_arrow, keys = "i", cmd = "l", opts = { desc = "Right", silent = true } },
|
-- { mode = mode_arrow, keys = "i", cmd = "l", opts = { desc = "Right", silent = true } },
|
||||||
{ mode = { "n" }, keys = "H", cmd = "<cmd>bprevious<CR>", opts = { desc = "Previous Buffer" } },
|
{ mode = { "n" }, keys = "H", cmd = "<cmd>bprevious<CR>", opts = { desc = "Previous Buffer" } },
|
||||||
{ mode = {"n"}, keys = "I", cmd = "<cmd>bnext<CR>", opts = { desc = "Next Buffer" } },
|
{ mode = { "n" }, keys = "L", cmd = "<cmd>bnext<CR>", opts = { desc = "Next Buffer" } },
|
||||||
{ mode = { "v", "o", "x" }, keys = "H", cmd = "^", opts = { desc = "Start of Line" } },
|
{ mode = { "v", "o", "x" }, keys = "H", cmd = "^", opts = { desc = "Start of Line" } },
|
||||||
{ mode = {"v", "o", "x"}, keys = "I", cmd = "$", opts = { desc = "End of Line" } },
|
{ mode = { "v", "o", "x" }, keys = "L", cmd = "$", opts = { desc = "End of Line" } },
|
||||||
{ mode = mode_arrow, keys = "N", cmd = "5j", opts = { desc = "Up 5 Lines" } },
|
{ mode = mode_arrow, keys = "J", cmd = "5j", opts = { desc = "Up 5 Lines" } },
|
||||||
{ mode = mode_arrow, keys = "E", cmd = "5e", opts = { desc = "Down 5 Lines" } },
|
{ mode = mode_arrow, keys = "K", cmd = "5e", opts = { desc = "Down 5 Lines" } },
|
||||||
{ keys = "Y", cmd = "y$", opts = { desc = "Yank to End of Line" } },
|
{ keys = "Y", cmd = "y$", opts = { desc = "Yank to End of Line" } },
|
||||||
{ mode = mode_arrow, keys = "N", cmd = "5j" },
|
{ mode = mode_arrow, keys = "J", cmd = "5j" },
|
||||||
{ mode = mode_arrow, keys = "E", cmd = "5k" },
|
{ mode = mode_arrow, keys = "K", cmd = "5k" },
|
||||||
{ mode = { "n", "o", "x" }, keys = "l", cmd = "i", opts = { desc = "Insert" } },
|
-- { mode = { "n", "o", "x" }, keys = "l", cmd = "i", opts = { desc = "Insert" } },
|
||||||
{ keys = "L", cmd = "I", opts = { desc = "Insert at Start of Line" } },
|
-- { keys = "L", cmd = "I", opts = { desc = "Insert at Start of Line" } },
|
||||||
{ mode = mode_arrow, keys = "k", cmd = "n", opts = { desc = "Next Search" } },
|
-- { mode = mode_arrow, keys = "k", cmd = "n", opts = { desc = "Next Search" } },
|
||||||
{ mode = mode_arrow, keys = "K", cmd = "N", opts = { desc = "Previous Search" } },
|
-- { mode = mode_arrow, keys = "K", cmd = "N", opts = { desc = "Previous Search" } },
|
||||||
{ mode = mode_arrow, keys = "j", cmd = "e", opts = { desc = "jump to end of word" } },
|
-- { mode = mode_arrow, keys = "j", cmd = "e", opts = { desc = "jump to end of word" } },
|
||||||
{ mode = mode_arrow, keys = "J", cmd = "E", opts = { desc = "jump to end of WORD" } },
|
-- { mode = mode_arrow, keys = "J", cmd = "E", opts = { desc = "jump to end of WORD" } },
|
||||||
-- https://github.com/LazyVim/LazyVim/blob/d1529f650fdd89cb620258bdeca5ed7b558420c7/lua/lazyvim/config/keymaps.lua#L60
|
-- https://github.com/LazyVim/LazyVim/blob/d1529f650fdd89cb620258bdeca5ed7b558420c7/lua/lazyvim/config/keymaps.lua#L60
|
||||||
{ keys = "<Esc>", cmd = "<Cmd>nohlsearch<Bar>diffupdate<CR>", opts = { desc = "Clear Search Highlight" } },
|
{ keys = "<Esc>", cmd = "<Cmd>nohlsearch<Bar>diffupdate<CR>", opts = { desc = "Clear Search Highlight" } },
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ markkeys h=^B:l=^F:$=^E:^U=^Z:^D=^V
|
||||||
|
|
||||||
bind x kill
|
bind x kill
|
||||||
|
|
||||||
source ~/.config/screen/+colemak.screenrc
|
source ~/.config/screen/+qwerty.screenrc
|
||||||
|
|
||||||
|
|
||||||
# Reload config (not directly supported in screen, but added for reference)
|
# Reload config (not directly supported in screen, but added for reference)
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ unbind '"'
|
||||||
bind - split-window -v
|
bind - split-window -v
|
||||||
unbind %
|
unbind %
|
||||||
bind ` resize-pane -Z
|
bind ` resize-pane -Z
|
||||||
source-file ~/.config/tmux/+colemak.tmux
|
source-file ~/.config/tmux/+qwerty.tmux
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,21 +15,21 @@ bindkey -v # Vi Keybindings
|
||||||
# e
|
# e
|
||||||
# v
|
# v
|
||||||
# bindkey -M vicmd 'h' vi-backward-char # No change
|
# bindkey -M vicmd 'h' vi-backward-char # No change
|
||||||
bindkey -M vicmd 'n' down-line-or-history
|
# bindkey -M vicmd 'n' down-line-or-history
|
||||||
bindkey -M vicmd 'e' up-line-or-history
|
# bindkey -M vicmd 'e' up-line-or-history
|
||||||
bindkey -M vicmd 'i' vi-forward-char
|
# bindkey -M vicmd 'i' vi-forward-char
|
||||||
|
#
|
||||||
# Similar position to [i] in QWERTY
|
# # Similar position to [i] in QWERTY
|
||||||
bindkey -M vicmd 'l' vi-insert
|
# bindkey -M vicmd 'l' vi-insert
|
||||||
bindkey -M vicmd 'L' vi-insert-bol
|
# bindkey -M vicmd 'L' vi-insert-bol
|
||||||
# Ne{[k]s}t
|
# # Ne{[k]s}t
|
||||||
bindkey -M vicmd 'k' vi-repeat-search
|
# bindkey -M vicmd 'k' vi-repeat-search
|
||||||
bindkey -M vicmd 'K' vi-rev-repeat-search
|
# bindkey -M vicmd 'K' vi-rev-repeat-search
|
||||||
# [J]ump
|
# # [J]ump
|
||||||
bindkey -M vicmd 'j' vi-forward-word-end
|
# bindkey -M vicmd 'j' vi-forward-word-end
|
||||||
bindkey -M vicmd 'J' vi-forward-blank-word-end
|
# bindkey -M vicmd 'J' vi-forward-blank-word-end
|
||||||
# Use N to Join
|
# # Use N to Join
|
||||||
bindkey -M vicmd 'N' vi-join
|
# bindkey -M vicmd 'N' vi-join
|
||||||
|
|
||||||
# Emacs Hybrid
|
# Emacs Hybrid
|
||||||
bindkey '^A' beginning-of-line
|
bindkey '^A' beginning-of-line
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue