verilog_systemverilog.vim icon indicating copy to clipboard operation
verilog_systemverilog.vim copied to clipboard

vim become very slow when there is a long define

Open sin-x opened this issue 1 year ago • 5 comments

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 *** \
   *** \
   

sin-x avatar Aug 03 '24 02:08 sin-x

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

Aprilskysky avatar Aug 09 '24 06:08 Aprilskysky

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?

vhda avatar Aug 09 '24 09:08 vhda

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?

Aprilskysky avatar Aug 10 '24 03:08 Aprilskysky

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.

sin-x avatar Aug 10 '24 03:08 sin-x

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

Aprilskysky avatar Aug 27 '24 10:08 Aprilskysky

@Aprilskysky let g:verilog_quick_syntax = 1 didn't fix the slowness for me.

antoine-axelera-ai avatar Feb 19 '25 17:02 antoine-axelera-ai