How do I make mappings feel snappier without breaking key-code timing?
:set timeout timeoutlen=400 ttimeoutlen=30
If custom mappings feel laggy, the issue is often timeout tuning rather than mapping design.
category:
config
tags:
#config
#mappings
#performance
#command-line
#insert-mode
How do I restrict keyword completion to current buffer, windows, buffers, and tags for predictable results?
Default keyword completion can feel noisy in large projects because Vim may scan extra sources you do not care about in the moment.
category:
config
tags:
#config
#completion
#insert-mode
#performance
#tags
How do I speed up mappings without breaking terminal keycode sequences in Vim?
:set timeoutlen=300 ttimeoutlen=10
If key mappings feel laggy, many users reduce timeoutlen and stop there.
category:
config
tags:
#config
#mappings
#terminal
#performance
#insert-mode
How do I temporarily disable the matchparen plugin in Vim?
Vim's built-in matchparen plugin highlights matching delimiters as your cursor moves.
category:
plugins
tags:
#plugins
#performance
#editing
#autocommands
#delimiters
How do I profile Vim startup time to find out which plugins are slowing it down?
vim --startuptime /tmp/vim-startup.log +qall && sort -k2 -rn /tmp/vim-startup.log | head -20
When Vim starts slowly, the --startuptime flag writes a timestamped log of every script and plugin loaded during initialization.
category:
config
tags:
#config
#performance
#startup
#profiling
#plugins
How do I make CursorHold events fire faster so plugins and diagnostics respond more quickly?
Vim's updatetime option controls two things: how quickly the swap file is written after you stop typing, and how many milliseconds of inactivity before the Curs
category:
config
tags:
#config
#performance
#autocmd
#cursorhold
#plugins
How do I temporarily disable all autocommands when running an Ex command?
The :noautocmd prefix (abbreviated :noa) suppresses all autocommand events for the duration of the following command.
category:
command-line
tags:
#ex-commands
#autocommands
#performance
#command-line
#scripting
How do I switch to a faster regex engine in Vim when syntax highlighting is causing slowdowns?
Vim ships with two regex engines and lets you control which one is used.
category:
config
tags:
#config
#performance
#syntax
#regex
#editing
How do I speed up Vim's insert mode completion by disabling include-file scanning?
Vim's complete option controls which sources are scanned when you press or to complete a word.
category:
config
tags:
#completion
#config
#performance
#insert-mode
How do I diagnose slow Neovim startup and identify which plugins are taking the longest to load?
When Neovim starts slowly, finding the culprit plugin is tedious without tooling.
category:
plugins
tags:
#config
#plugins
#performance
How do I use an atomic group in a Vim regex to prevent backtracking?
Vim's \@> syntax creates an atomic group in a regular expression.
category:
search
tags:
#search
#regex
#advanced-regex
#performance
How do I speed up Vim when editing files with very long lines like minified code or CSV?
The synmaxcol option tells Vim the maximum column up to which it will apply syntax highlighting on each line.
category:
config
tags:
#config
#performance
#syntax
#editing
How do I find out which scripts or plugins are slowing down my Vim startup?
When Vim feels sluggish to start, the built-in :profile command lets you measure exactly how much time each script, function, or plugin takes to load.
category:
config
tags:
#config
#performance
#debugging
#ex-commands
How do I find which Vim scripts or functions are slow and causing performance issues?
:profile start profile.log
When Vim feels sluggish, the built-in :profile command lets you measure exactly how much time each script and function consumes.
category:
config
tags:
#config
#ex-commands
#performance
How do I profile Vimscript functions to find what is slowing down Vim at runtime?
:profile start profile.log | profile func *
When Vim feels sluggish during editing—not just at startup—you need runtime profiling to pinpoint which functions are consuming the most time.
category:
config
tags:
#profiling
#debugging
#config
#ex-commands
#performance
How do I find which syntax highlighting rules are slowing down Vim?
When Vim feels sluggish while editing files with complex syntax highlighting, :syntime lets you profile exactly which syntax rules are consuming the most time.
category:
config
tags:
#syntax
#profiling
#performance
#config
How do I find out what is making Vim slow to start up?
vim --startuptime /tmp/vim-startup.log
When Vim takes too long to start, the --startuptime flag writes a detailed timing log showing exactly how long each plugin, script, and initialization step take
category:
config
tags:
#config
#debugging
#performance
#ex-commands