Remove vim screen screen errors

Something very strange happens when I open files in vim, and I don’t remember to do something that could cause it.

Strange behavior includes:

  • the text is not displayed until I selected it in visual mode, after which it will be visible on it. ": Redraw!" I can not see anything.
  • line 1 is missing
  • sometimes the cursor appears on one line below where it is being edited. Statuses
  • become permanent and scroll from bottom to top, and not just redrawn at the bottom.
  • vim text does not extend to the bottom of the vertical window

I do not have enough reputation for posting screenshots, but I was happy to provide any other information that could help in the diagnosis.

ETA: Ah! My .vimrc set the column / row size. I deleted this line, and so far everything is doing fine. Thank!

+5
source share
3 answers

vim is terminal based, and such errors happen when the terminal you use does not match the vim terminal you are using. Most people use vim with terminal emulators. This can happen when the emulator window is resized, and vim does not know about it, or less often when the terminal identification line specified in the environment does not match the terminal emulator used.

, vim, , : , vim.

, , 100% , .

+6

UNIX (Linux .), :!resize, . , , , , .

+5

vim bash. bash zsh, , , , , , 10 , . , .

I had this line in my previous .vimrc, I believe that I need to set the color for vim

set t_256

I changed it to set term=xterm=256colorand the problem disappeared.

+1
source

All Articles