Questions tagged [performance]
The performance tag has no summary.
52 questions
1 vote
0 answers
97 views
Vim slow upwards scrolling in file with vim9script
If I open the file popup.vim in vim and go to the bottom with G, then scrolling upwards with k is extremely laggy. The problem only occurs if I hold down k, pressing it repeatedly it works fine. ...
0 votes
2 answers
103 views
Extremely slow scrolling when `wrap` is enabled for a large file with long lines
I'm using M3 macbook and VIM 9.1. The computer is very idle; 80% CPU and 5GB RAM are available. I have a file whose size is 26MB. It consists only of 40 lines but each line is very long (e.g. 1,000,...
2 votes
1 answer
135 views
Why do these two nearly-identical bindings take different time to execute?
I like to open Vim with many buffers open, and switch between them using plugins. Because I work a lot in C++, I like to have a way to quickly switch between header files and their corresponding ...
0 votes
0 answers
44 views
Get Stuck When Opening a file with thousands of lines by LSP-enabled Vim on Windows MSYS2
I am trying to recreate the Vim environment on Windows MSYS2 with my Linux Vim settings. But I found that when the LSP (prabirshrestha/vim-lsp) is turned on, sometimes the file gets stuck when opening ...
3 votes
0 answers
471 views
Delay When Closing `:terminal` Window
Long story, short.... Everything's fine on my MacBook, but I have an issue in Neovim 0.9.1 on Windows 10. I see this behavior when starting nvim from the usual shells - Command Prompt (cmd.exe), ...
1 vote
2 answers
2k views
How to improve CMP performance?
nvim-cmp + Tailwind LSP lags the crap out of the editor when typing HTML class names. I understand this must be because Tailwind's suggestions come in large quantities. But is there a way to improve ...
0 votes
0 answers
90 views
a `nnoremap <buffer><silent>` on .vimrc make the curssor very slow on normal mode
To automate a bit the title creation for rst text I added this to my .vimrc: au FileType rst nnoremap <buffer><silent>h1 yypVr=o au ...
1 vote
0 answers
447 views
neovim: breakindent results in slow insert mode
I had the feeling that neovim was being sluggish in insert mode so I started bisecting my init.vim. Contrary to my expectations it looks like dozens autotrigger snippets were not the culprit but rater ...
3 votes
1 answer
6k views
is neovim faster than vim? [closed]
I've read it in some places that neovim is faster than vim, but many of these are a few year old blog posts and I haven't seen any actual comparisons (I'm not even sure how one could be reliable done ...
0 votes
0 answers
683 views
Neovim freezes when opening a folder in WSL2
When I open neovim with to show a folder it completely freezes. When opening a folder from the command line: nvim . I see a completely black screen When having a file open, navigating to parent ...
2 votes
2 answers
971 views
Fastest way to compare string with pattern
As far as I know I have these two options to compare a string with a pattern: Using the =~ comparison. Using the matchstr() function. So it looks like this: " with =~ if string =~ "pattern&...
4 votes
1 answer
631 views
Delete and change key sequences are slow
When I use mapped key sequences which cause an immediate change in the file (e.g. cw, dw, D, C), i have a wait time of roughly 1 second. Other mappings which are just movement (e.g. 3w) or movement ...
4 votes
0 answers
95 views
Can using too many abbreviations slow down vim?
Recently I started using the iabbr to the best of my abilities. While editing a file I may have sourced as many as 500 abbreviations. I have also noticed that my vim is slowing down recently. The ...
1 vote
1 answer
1k views
Vim takes a long time to close over SSH?
While ssh'd into my server, vim hangs for a variable amount of time (about 2 seconds, but can be longer or shorter) when opening and closing. It's worth noting that (to my eyes) the delay is the ...
2 votes
0 answers
262 views
How to make code-folding more efficient
I have a ruby file while is about 5K+ lines long. My current setup uses the vim-ruby plugin. With this, I enable code folding with let ruby_fold = 1 This opens my ruby files pre-folded. I can open ...