vhda / verilog_systemverilog.vim

Verilog/SystemVerilog Syntax and Omni-completion
369 stars 90 forks source link

vim become very slow when there is a long define #243

Open sin-x opened 3 months ago

sin-x commented 3 months ago

Hi, When the cursor moves within the long define block, Vim becomes very slow. But when the cursor moves outside the range of the define, it becomes normal.

I have some files which have long defines. When move the cursor with these defines, it become very slow. So could you please help me find the problem?

The define like this but longer than this.

`define CEATE_SEQUSER(name, seqtyepe, seqrname) \
  if *** \
   *** \
Aprilskysky commented 3 months ago

i have the sam issue, when i use long define, neovim will become very slow.

vhda commented 3 months ago

I've experienced this when using syntax folding, hence my recommendation to use FastFold plugin at the end of README.md in the front page. Have you tried this?

Aprilskysky commented 3 months ago

Thanks for your reply. I am in normal mode, long define will be very slow. But your recommendation to use FastFold plugin at the end of README.md is in insert mode. The FastFold plugin also overcomes this issue in normal mode?

sin-x commented 3 months ago

Even though I set the foldmethod to marker, the problem still persists. When i use hjkl to move cursor, vim becomes very slow. But when I use Ctrl-f to scroll through pages, vim does't become slow.

Aprilskysky commented 2 months ago

"let g:verilog_quick_syntax = 1" will let long define don't become very slow. But automatic indentation will be desiabled.