What is the default setting that makes Vim really slow on a Mac screen?

The problem is not resolved, although I accepted one answer.

Problem: Vim updates the screen to Screen on Mac very slowly, although lazyredraw and showcmd are disabled .


Line numbers fall on foldColumn as shown below, for example, when I have line numbers alt text http://dl.getdropbox.com/u/175564/vimScreenFold.png

When I have nothing in my .vimrc, the problem can be seen by multiplying the comment lines by each other: alt text http://dl.getdropbox.com/u/175564/vimScatteredBug.png

I did not type the following comment more than once on the left side

"set list...

Observations

  • seemed to be found only in comment lines and empty lines . However, I have obtained evidence (2) that shows that this is not so.
  • scattering occurs mainly in the left window. They are also found with one window. However, this is more difficult to detect.
  • The error occurs a little differently when I have nothing in .vimrc. However, "stagnation" occurs in both situations: with an empty .vimrc and with a non-empty .vimrc.

Error identification

Dependent Variables

  • Vim is automatically added depending on the comments . I noticed fading pixels when Vim automatically put Python # comment marks in my files when it could not display the whole file.
  • Depends on at least OS / X Leopard.

Independent variables

  • : , Vim
  • : Python
  • .vimrc independent: .vimrc
  • .screenrc independent: .screenrc
  • : Bash Zsh
  • : Leopard 4.0.3
  • : , ,.zshrc,.vimrc .screenrc

Vim ?

+3
8

, termcap terminfo. .

, ( ) ?

, , OSX Terminal.app, ( screen/zsh/vim). /usr/bin/screen /usr/bin/vim .screenrc .vimrc .

% touch empty_screenrc
% cat empty_screerc
% /usr/bin/screen -c empty_screenrc
#...and within screen
% /usr/bin/vim -u NONE

, . , ~/.vimrc, .

+3

, OS X 256 . vim .vimrc:

set t_Co=16

Mac OS X , 256 , . : http://pjkh.com/articles/2008/07/09/osx-iterm-screen-vim-256-colors.

:

, 256 :

./configure --enable-colors256

~/.screenrc:

# terminfo and termcap for nice 256 color terminal
# allow bold colors - necessary for some reason
attrcolor b ".I"
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# erase background with current bg color
defbce "on"

+2

( ), Consolas, Terminal.App ITerm. .

+2

Crux: , Vim

.vimrc .screenrc, , .

, . .

Python. , , Vim , . , # -, Vim.

.

alt text http://dl.getdropbox.com/u/175564/pythonBug.png


, , , , Vim.

alt text http://dl.getdropbox.com/u/175564/counterExample.png

, .

, Python, "" , . .


.vimrc

  • , Vim

    set formatoptions- = c

+1

, , OS X, . 1. . .

+1

irssi bash, .

vim ( , ) :syntax off?

+1

Debugging:

ttyctl -f

, , . , , , .

0
source

Source: https://habr.com/ru/post/1708984/


All Articles