vimrc: workaround for vim issue #11766

This commit is contained in:
Johannes Rothe 2023-01-04 18:03:30 +01:00 committed by Johannes Rothe
parent 42dd649be1
commit 7b3562f08d
2 changed files with 9 additions and 4 deletions

View File

@ -25,8 +25,6 @@ set $wallpaper ~/pictures/wallpaper/voxel-city-by-huntingfluff.jpg
bindsym --release Print exec grimshot copy area
# lock
bindsym Mod1+l exec swaylock -f -i $wallpaper -s fill
# dynamic monitor configuration, see ~/.config/kanshi/config, get outputs with swaymsg -t get_outputs
exec_always "pkill kanshi; kanshi"
# titlebars
default_border pixel
default_floating_border pixel
@ -41,9 +39,9 @@ exec gammastep -l50.81:6.37
# https://github.com/emersion/xdg-desktop-portal-wlr#running
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway
# dynamic monitor configuration, see ~/.config/kanshi/config, get outputs with swaymsg -t get_outputs
exec_always "pkill kanshi; kanshi"
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
output * bg $wallpaper fill

View File

@ -36,6 +36,7 @@ augroup sh
autocmd FileType sh :set tabstop=2 softtabstop=2 shiftwidth=2 expandtab autoindent fileformat=unix
augroup end
autocmd FileType dockerfile :set tabstop=4 softtabstop=4 shiftwidth=4 expandtab autoindent fileformat=unix
autocmd FileType bzl :set tabstop=4 softtabstop=4 shiftwidth=4 expandtab autoindent fileformat=unix
autocmd FileType nginx :set tabstop=2 softtabstop=2 shiftwidth=2 expandtab autoindent fileformat=unix
autocmd FileType gitcommit :set spell
autocmd FileType markdown :set spell
@ -120,3 +121,9 @@ let g:terraform_align = 1
"underline spell errors in terminals
hi SpellBad ctermfg=218 cterm=underline
" workaround for https://github.com/vim/vim/issues/11766
let &t_BE = ""
let &t_BD = "\e[?2004l"
exec "set t_PS=\e[200~"
exec "set t_PE=\e[201~"