sublime-text - Performance of vim and sublime when processing large text
给我你的怀抱2017-05-16 16:35:49
0
5
865
As the title states, when processing a text file with tens of thousands of lines, vim has obvious lags when moving the cursor, but sublime is very smooth.
What is the internal principle? Can vim be improved?
Vim has too many functions enabled by default, and many of these functions have poor performance under large files. For example, :set noswapfile禁掉swap file,比如vim -u xxx no plug-in startup, etc.
The main design of vim is not for large files. It is rare for code files to have tens of thousands of lines or more
Use vim8.0 to view the log under ssh. There are 989.31 million lines, which is very smooth. The native Windows uses self-compiled gvim8.0 to view it, and it is also very smooth.
I guess you are using the officially released gvim 7.4 for windows, which is not even supported by +directx. What’s the point of using an old version of an open source softwarefor the worst optimized platformcompared with the latest version of commercial software?
It must be a network problem that causes the vim editing cursor to freeze in ssh. Not to mention vim, even with a small nano, it is very easy to edit a 100,000-line file. But I am used to using the editor Geany on the Ubuntu desktop.
Vim has too many functions enabled by default, and many of these functions have poor performance under large files. For example,
:set noswapfile
禁掉swap file,比如vim -u xxx
no plug-in startup, etc.The main design of vim is not for large files. It is rare for code files to have tens of thousands of lines or more
Use vim8.0 to view the log under ssh. There are 989.31 million lines, which is very smooth.
The native Windows uses self-compiled gvim8.0 to view it, and it is also very smooth.
I guess you are using the officially released gvim 7.4 for windows, which is not even supported by +directx.
What’s the point of using an old version of an open source softwarefor the worst optimized platformcompared with the latest version of commercial software?
Are you sure your vim is in a Linux environment? I have also opened very large files without any lag, but sublime is also very easy to use
Tens of thousands of lines?
VIM
我最大打开过 2G 的日志文件。没啥问题。打开几百M的文件更是EASY
.The original poster can imagine how many lines there are.
It must be a network problem that causes the vim editing cursor to freeze in ssh. Not to mention vim, even with a small nano, it is very easy to edit a 100,000-line file. But I am used to using the editor Geany on the Ubuntu desktop.