about summary refs log tree commit diff stats
path: root/modules/by-name/zs/zsh/config/keymaps/viopp.zsh
blob: 3dd900f8530e94933b00d50cc0b21b3c028e51d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# nixos-config - My current NixOS configuration
#
# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This file is part of my nixos-config.
#
# You should have received a copy of the License along with this program.
# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.

bindkey -N viopp

bindkey -M viopp "t" down-line
bindkey -M viopp "n" up-line

bindkey -M viopp "^[" vi-cmd-mode


bindkey -M viopp "aW" select-a-blank-word
bindkey -M viopp "aa" select-a-shell-word
bindkey -M viopp "aw" select-a-word

bindkey -M viopp "iW" select-in-blank-word
bindkey -M viopp "ia" select-in-shell-word
bindkey -M viopp "iw" select-in-word


bindkey -M viopp "a(" select-bracketed
bindkey -M viopp "a)" select-bracketed
bindkey -M viopp "a<" select-bracketed
bindkey -M viopp "a>" select-bracketed
bindkey -M viopp "aB" select-bracketed
bindkey -M viopp "a[" select-bracketed
bindkey -M viopp "a]" select-bracketed
bindkey -M viopp "ab" select-bracketed
bindkey -M viopp "a{" select-bracketed
bindkey -M viopp "a}" select-bracketed
bindkey -M viopp "i(" select-bracketed
bindkey -M viopp "i)" select-bracketed
bindkey -M viopp "i<" select-bracketed
bindkey -M viopp "i>" select-bracketed
bindkey -M viopp "iB" select-bracketed
bindkey -M viopp "i[" select-bracketed
bindkey -M viopp "i]" select-bracketed
bindkey -M viopp "ib" select-bracketed
bindkey -M viopp "i{" select-bracketed
bindkey -M viopp "i}" select-bracketed

bindkey -M viopp "a'" select-quoted
bindkey -M viopp "a\"" select-quoted
bindkey -M viopp "a\`" select-quoted
bindkey -M viopp "i'" select-quoted
bindkey -M viopp "i\"" select-quoted
bindkey -M viopp "i\`" select-quoted