aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/vim_diff.txt
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2021-09-02 05:17:04 -0600
committerGitHub <noreply@github.com>2021-09-02 04:17:04 -0700
commit622a36b1f1c652a8de433028bc4a03a1216db23f (patch)
tree2895b1fc5eefbf02e4b316ecb404a5b00f194dd6 /runtime/doc/vim_diff.txt
parent6751d6254b35d216a86817cd414d5d06e3ff641d (diff)
downloadrneovim-622a36b1f1c652a8de433028bc4a03a1216db23f.tar.gz
rneovim-622a36b1f1c652a8de433028bc4a03a1216db23f.tar.bz2
rneovim-622a36b1f1c652a8de433028bc4a03a1216db23f.zip
feat(defaults): limit syntax cost on CmdwinEnter #15401
Add a new default autocommand to limit syntax highlighting synchronization in the command window. This refactors the nvim_terminal autocommand out of main() and into a new init_default_autocmds() function, which is now part of the startup process and can be further extended with more default autocommands down the road. ref #6289 #6399
Diffstat (limited to 'runtime/doc/vim_diff.txt')
-rw-r--r--runtime/doc/vim_diff.txt27
1 files changed, 21 insertions, 6 deletions
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index 918b35439d..e50ec7d520 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -76,12 +76,27 @@ the differences.
- |g:vimsyn_embed| defaults to "l" to enable Lua highlighting
-Default Mappings: *default-mappings*
-
-nnoremap Y y$
-nnoremap <C-L> <Cmd>nohlsearch<Bar>diffupdate<CR><C-L>
-inoremap <C-U> <C-G>u<C-U>
-inoremap <C-W> <C-G>u<C-W>
+Default Mappings ~
+ *default-mappings*
+>
+ nnoremap Y y$
+ nnoremap <C-L> <Cmd>nohlsearch<Bar>diffupdate<CR><C-L>
+ inoremap <C-U> <C-G>u<C-U>
+ inoremap <C-W> <C-G>u<C-W>
+<
+Default Autocommands ~
+ *default-autocmds*
+Default autocommands exist in the following groups. Use ":autocmd! {group}" to
+remove them and ":autocmd {group}" to see how they're defined.
+
+nvim_terminal:
+- BufReadCmd: New files with a name matching
+ `term://(.{-}//(\d+:)?)?\zs.*` are treated as terminal
+ buffers. |terminal-start|
+
+nvim_cmdwin:
+- CmdWinEnter: Synchronize syntax highlighting within the command
+ window.
==============================================================================
3. New Features *nvim-features*