Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sin-x opened this issue Aug 3, 2024 · 5 comments
Open

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

sin-x opened this issue Aug 3, 2024 · 5 comments
Assignees

Comments

@sin-x
Copy link

sin-x commented Aug 3, 2024

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
Copy link

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

@vhda
Copy link
Owner

vhda commented Aug 9, 2024

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 vhda self-assigned this Aug 9, 2024
@Aprilskysky
Copy link

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
Copy link
Author

sin-x commented Aug 10, 2024

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 sin-x closed this as completed Aug 10, 2024
@sin-x sin-x reopened this Aug 10, 2024
@Aprilskysky
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants