fix(vim): <C-_> now <C-/> as it should be in the first place

This commit is contained in:
ziro 2023-05-25 09:14:36 +07:00
parent 207ad67a7b
commit b2a731e341
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
3 changed files with 7 additions and 5 deletions

View file

@ -5,7 +5,8 @@ exec-once = unclutter
exec-once = dunst exec-once = dunst
exec-once = numlockx exec-once = numlockx
exec-once = lxpolkit exec-once = lxpolkit
exec-once = hyperpaper exec-once = nitrogen --restore
exec-once = fcitx5 -d
#exec-once = mpvpaper -vs -o "no-audio loop" VGA-1 /home/ziro/my\ Files/Wallpaper/HoloLive/Torii\ Gate/Torii\ Gate.webm & #exec-once = mpvpaper -vs -o "no-audio loop" VGA-1 /home/ziro/my\ Files/Wallpaper/HoloLive/Torii\ Gate/Torii\ Gate.webm &
monitor=,preferred,auto,auto monitor=,preferred,auto,auto
@ -103,6 +104,7 @@ bind = , Print, exec, grim -g "$(slurp)" - | wl-copy
bind = $mainMod, Space, exec, exec `tofi-run` 2>/dev/null bind = $mainMod, Space, exec, exec `tofi-run` 2>/dev/null
bind = $metaMod, Q, exit, bind = $metaMod, Q, exit,
bind = $metaMod, F, togglefloating, bind = $metaMod, F, togglefloating,
bind = $metaMod, S, pin,
bind = $metaMod, P, pseudo, # for dwindle only bind = $metaMod, P, pseudo, # for dwindle only
bind = $metaMod, J, togglesplit, # for dwindle only bind = $metaMod, J, togglesplit, # for dwindle only

View file

@ -52,10 +52,9 @@ noremap <C-Y> "+y
noremap <C-P> "+P noremap <C-P> "+P
" Shortcut to comment a line " Shortcut to comment a line
" <C-_> means ctrl+/ for vim, for some reason... map <C-/> gcc
map <C-_> gcc vmap <C-/> gc
vmap <C-_> gc imap <C-/> <esc>gc
imap <C-_> <esc>gc
" Clear last search result " Clear last search result
map <leader>c :noh<CR> map <leader>c :noh<CR>

View file

@ -9,6 +9,7 @@
# rateUSD | sed 's/^/ /g' # rateUSD | sed 's/^/ /g'
setopt auto_cd # auto cd if directory setopt auto_cd # auto cd if directory
# highlight on tab (completion) # highlight on tab (completion)
[ -f ~/.config/zsh/completion ] && source ~/.config/zsh/completion [ -f ~/.config/zsh/completion ] && source ~/.config/zsh/completion
# zstyle ':completion:*:*:git:*' script /usr/local/etc/bash_completion.d/git-completion.bash # zstyle ':completion:*:*:git:*' script /usr/local/etc/bash_completion.d/git-completion.bash