On 15:39 Mon 12 Mar , Yichao Zhou wrote:
> > 'relativenumber' shouldn't make it slower. I can't reproduce your problem
> > in a TeX document (ConTeXt). Can you provide an example document that shows
> > the problem? Have you installed any plugins that might be slower with
> > 'relativenumber' enabled?
>
> Yes. I attached the example document.
> You can reproduce it either by
> 1. With rnu, typing some words. You will find the words on screen is
> blinking. (but nu won't)
> 2. With rnu, use your mouse scroll to screen. You will find the
> screen scroll much slower than 'nu'.
> This is a latex document, you'd better have
> let g:tex_comment_nospell= 1
> let g:tex_flavor = "latex"
>
> The phenomenon is very similar to 'cursorline'.
>
> I spend much time on detecting what causes vim slower. I binary
> search my vimrc and disable all the plugin and finally detect the
> problem. I'm sure this is not the problem of plugin or other options.
>
>
> > Also, please provide `vim --version` (or :version) output.
>
> VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 16 2010 10:30:12)
> MS-Windows 64-bit console version
> Compiled by [email protected]
> Huge version without GUI. Features included (+) or not (-):
> +arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
> +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
> +conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs
> -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path
> +find_in_path +float +folding -footer +gettext/dyn -hangul_input +iconv/dyn
> +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent
> +listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape
> +multi_byte_ime/dyn +multi_lang -mzscheme -netbeans_intg -osfiletype
> +path_extra -perl +persistent_undo +postscript +printer +profile +python/dyn
> -python3 +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent
> -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary
> +tag_old_static -tag_any_white -tcl -tgetent -termresponse +textobjects +title
> -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
> +vreplace +wildignore +wildmenu +windows +writebackup -xfontset -xim
> -xterm_save -xpm_w32
> system vimrc file: "$VIM\vimrc"
> user vimrc file: "$HOME\_vimrc"
> 2nd user vimrc file: "$VIM\_vimrc"
> user exrc file: "$HOME\_exrc"
> 2nd user exrc file: "$VIM\_exrc"
> Compilation: cl -c /W3 /nologo -I. -Iproto -DHAVE_PATHDEF -DWIN32
> -DFEAT_CSCO
> PE -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 /Fo.\ObjCY/ /Ox /GL -DNDEBUG
> /Z
> l /MT -DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_MBYTE -DDYNAMIC_ICONV
> -DDYNAMIC_GETT
> EXT -DFEAT_PYTHON -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python27.dll\"
> -DMSWI
> NPS -DFEAT_HUGE /Fd.\ObjCY/ /Zi
> Linking: link /RELEASE /nologo /subsystem:console /LTCG:STATUS oldnames.lib
> kern
> el32.lib advapi32.lib shell32.lib gdi32.lib comdlg32.lib ole32.lib uuid.lib
> /ma
> chine:AMD64 /nodefaultlib libcmt.lib user32.lib
> /nodefaultlib:python27.l
> ib /PDB:vim.pdb -debug
>
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
Hello,
I can reproduce it (on Linux) using the tex file and also with other latex
files. Finally, I know what is slowing down! Thanks!
My vim version:
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Mar 10 2012 08:26:59)
Included patches: 1-470
Modified by Gentoo-9999
Compiled by coot@flaying_circus
Huge version without GUI. Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist
+cmdline_info +comments +conceal +cryptv -cscope +cursorbind +cursorshape
+dialog_con +diff +digraphs -dnd -ebcdic +emacs_tags +eval
+ex_extra +extra_search +farsi +file_in_path +find_in_path +float +folding
-footer +fork() +gettext -hangul_input +iconv +insert_expand
+jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap
-lua +menu +mksession +modify_fname +mouse -mouseshape
+mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse
+mouse_xterm +mouse_urxvt +multi_byte +multi_lang -mzscheme
+netbeans_intg +path_extra -perl +persistent_undo +postscript +printer +profile
+python -python3 +quickfix +reltime +rightleft +ruby
+scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop
+syntax +tag_binary +tag_old_static -tag_any_white -tcl
+terminfo +termresponse +textobjects +title -toolbar +user_commands +vertsplit
+virtualedit +visual +visualextra +viminfo +vreplace
+wildignore +wildmenu +windows +writebackup +X11 +xfontset -xim +xsmp_interact
+xterm_clipboard -xterm_save
system vimrc file: "/etc/vim/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: x86_64-pc-linux-gnu-gcc -c -I. -Iproto -DHAVE_CONFIG_H
-march=k8-sse3 -O2 -pipe -fmerge-all-constants -msse -msse2 -msse3 -m3dnow
-mfpmath=sse -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: x86_64-pc-linux-gnu-gcc -L. -Wl,-O1 -Wl,--as-needed -rdynamic
-Wl,-export-dynamic -Wl,--no-undefined -Wl,-O1 -Wl,--as-needed -L/usr/local/lib
-Wl,--as-needed -o vim -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm
-lnsl -lcurses -lacl -lattr -lgpm -ldl -L/usr/lib/python2.7/config
-lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-R
-Wl,/usr/lib64 -L/usr/lib64 -lruby18 -lrt -ldl -lcrypt -lm -L/usr/lib64
Best,
Marcin
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php