Vim 7.2 зависает на запуске, “killall энергия” фиксирует его

Используйте объект BinaryReader возвратить массив байтов из потока как:

byte[] fileData = null;
using (var binaryReader = new BinaryReader(Request.Files[0].InputStream))
{
    fileData = binaryReader.ReadBytes(Request.Files[0].ContentLength);
}
8
задан raven 13 November 2009 в 03:52
поделиться

2 ответа

Well, I found the answer:

:help -X

shows that Vim tries to connect to the X11 server on startup to get clipboard functionality and other stuff, which can lead to a "long startup time when running Vim in a terminal emulator and the connection to the X server is slow"

There are three ways to resolve this issue:

  1. Starting Vim with "vim -X" disables this X11 communication
  2. Calling "unset DISPLAY" also disables the X11 communication
  3. If Vim is compiled without the "+X11" feature, this communication will not take place

I went for "unset DISPLAY" since I've been getting other strange error messages, and now vim starts all but instantly. I also tested the -X parameter, which resolved the problem as well (even with the DISPLAY parameter still set).

19
ответ дан 3 November 2019 в 14:19
поделиться

strace vim , вероятно, скажет вам, что это висит.

6
ответ дан 3 November 2019 в 14:19
поделиться
Другие вопросы по тегам:

Похожие вопросы: