[英]Jumping multiple lines at once causes weird behaviour on screen
在 Vim 中,当尝试一次跳转多行时(例如使用G
或gg
),如果我跳过的内容超出了当前在屏幕上看到的范围,则无法正确绘制屏幕文本。
旧光标位置的文本填充新位置周围的空白。
我尝试用<Esc>:redraw<CR>
重绘缓冲区无济于事。
我的.vimrc
相当简单,我认为这不会导致问题。
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'arcticicestudio/nord-vim'
Plugin 'preservim/nerdtree'
call vundle#end()
filetype plugin on
colorscheme nord
set relativenumber number
syntax on
set bs=2
set smartindent autoindent
nmap <silent> <F8> :call ToggleDiff()<CR>
function ToggleDiff()
if(&diff)
windo diffoff
else
windo diffthis
endif
endfunction
我在 Konsole 上使用 tmux。
这是.tmux.conf
unbind C-b
set-option -g prefix C-a
bind C-a send-prefix
set-window-option -g mode-keys vi
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
bind -n C-x select-pane -t :.+
bind-key -r -T prefix C-j resize-pane -D 5
bind-key -r -T prefix C-h resize-pane -L 5
bind-key -r -T prefix C-k resize-pane -U 5
bind-key -r -T prefix C-l resize-pane -R 5
# Design changes
set -g default-terminal "xterm-256color"
# Global options
set-option -g allow-rename off
# Nord options
set -g @nord_tmux_no_patched_font "1"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin "arcticicestudio/nord-tmux"
run -b '~/.tmux/plugins/tpm/tpm'
此外,我正在通过 etx 远程使用该系统,尽管我已经使用了很长时间并且没有引起任何问题。
编辑:
刚刚观察。 当 NERDTree 在侧面打开时不会发生此问题。 这是有道理的,因为只有在我添加 NERDTree 插件时才会出现问题。
如果您将default-terminal
设置为tmux-256color
或screen-256color
并重新启动 tmux ( tmux kill-server
),这仍然会发生吗? 确保TERM
在tmux-256color
是tmux-256color
或screen-256color
。
还有你的 Konsole 几岁了? 这可能是 Konsole 中的indn
错误。 在.tmux.conf
试试这个并重启 tmux:
set -as terminal-overrides ',*:indn@'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.