Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vim 同时跳转多行会导致屏幕上出现奇怪的行为_Vim_Tmux_Nerdtree_Konsole - Fatal编程技术网

Vim 同时跳转多行会导致屏幕上出现奇怪的行为

Vim 同时跳转多行会导致屏幕上出现奇怪的行为,vim,tmux,nerdtree,konsole,Vim,Tmux,Nerdtree,Konsole,在Vim中,当尝试一次跳转多行时,例如使用G或gg,如果跳转超出当前在屏幕上看到的范围,屏幕上的文本将无法正确绘制 来自旧光标位置的文本将填充新位置周围的空白 我尝试使用:redraw重新绘制缓冲区,但无效 我的.vimrc相当简单,我认为这不应该引起问题 set nocompatible filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim

在Vim中,当尝试一次跳转多行时,例如使用G或gg,如果跳转超出当前在屏幕上看到的范围,屏幕上的文本将无法正确绘制

来自旧光标位置的文本将填充新位置周围的空白

我尝试使用:redraw重新绘制缓冲区,但无效

我的.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
此外,我还通过etx远程使用该系统,尽管我已经使用了很长一段时间,这并没有引起任何问题

编辑:


刚刚观察到。当NERDTree在侧面打开时,不会发生此问题。这种情况是有道理的,因为只有在我添加NERDTree插件时才会出现问题。

如果将默认终端设置为tmux-256color或screen-256color并重新启动tmux tmux kill服务器,这种情况还会发生吗?确保术语是tmux-256color或tmux内部的screen-256color

还有,你的Konsole多大了?这可能是Konsole的indn错误。在.tmux.conf中尝试此操作并重新启动tmux:

set -as terminal-overrides ',*:indn@'
set -as terminal-overrides ',*:indn@'