当我在vim中使用j、 k我用不同的终端复制了这个。我也尝试过使用 如果我用 在滚动和重新绘制屏幕方面,使用和不使用分屏运行vim的最大区别是什么? 编辑: 我刚刚意识到问题只出现在垂直拆分中。水平拆分效果良好! 第2版: 该行为仅在使用vi/vim的终端版本时出现。一旦我用与vim相同的配置启动gVim,一切都像一个魅力,即使在垂直拆分中也是如此。我在另一个论坛上发现了一个有类似问题的人。他得到了问题可能是什么的答案,但没有得到如何解决的答案。答案是: 第3版: 我运行的是Ubuntu 13.10-64位。我的电脑规格是: 此处为ttyfast
和lazyredraw
,但它们都没有改变。-u NONE
开始vim,它是一样的,只是不那么明显。That's because the application has to repaint the screen rather than actually
scrolling (since it cannot rely on the left/right halves of the display
to scroll at the same rate).
vim --version
的输出VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 12 2013 00:23:33)
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by buildd@
Huge version with GTK2-GNOME GUI. Features included (+) or not (-):
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
+balloon_eval +float +mouse_urxvt -tag_any_white
+browse +folding +mouse_xterm +tcl
++builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent +gettext -mzscheme +textobjects
+clientserver -hangul_input +netbeans_intg +title
+clipboard +iconv +path_extra +toolbar
+cmdline_compl +insert_expand +perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info +keymap +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak +python +viminfo
+cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con_gui +lua +rightleft +windows
+diff +menu +ruby +writebackup
+digraphs +mksession +scrollbind +X11
+dnd +modify_fname +signs -xfontset
-ebcdic +mouse +smartindent +xim
+emacs_tags +mouseshape -sniff +xsmp_interact
+eval +mouse_dec +startuptime +xterm_clipboard
+ex_extra +mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop
+farsi +mouse_netterm +syntax
实际上您已经回答了最初的问题:
That's because the application has to repaint
the screen rather than actually scrolling
这就是我所做的。对我来说,当它滚动慢时,不一定是因为拆分,我会尝试使用:22j
而不是j
,22
可以是任何数字,它让vim
进行移位,而不是计算每个j
的滚动。
由于最初的问题已经得到回答,我想添加我的解决方案,它似乎适用于我运行Vim 7.4.52和Ubuntu 14.04。
我使用tmux来垂直拆分终端窗口,并在每个模拟终端中运行vim的独立实例。再加上vim-tmux导航器,它允许在vim-和tmux拆分之间进行无缝导航,体验基本相同,但在滚动时不会出现停顿。
我唯一怀念的是从一个缓冲区猛拉/粘贴到另一个缓冲区时的能力,但这肯定也是可以解决的。