Mercurial > vim
comparison runtime/doc/cmdline.txt @ 18043:5a0d5f8e1778 v8.1.2017
patch 8.1.2017: cannot execute commands after closing the cmdline window
Commit: https://github.com/vim/vim/commit/96e38a86a710fb6daec4550ac1667f019dc3a40e
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Sep 9 18:35:33 2019 +0200
patch 8.1.2017: cannot execute commands after closing the cmdline window
Problem: Cannot execute commands after closing the cmdline window.
Solution: Also trigger BufEnter and WinEnter. (closes https://github.com/vim/vim/issues/4762)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 09 Sep 2019 18:45:04 +0200 |
parents | 834b7854aa3c |
children | 03b854983b14 |
comparison
equal
deleted
inserted
replaced
18042:1616f2fc1e3c | 18043:5a0d5f8e1778 |
---|---|
1169 edited as described in |cmdwin-char|. | 1169 edited as described in |cmdwin-char|. |
1170 | 1170 |
1171 | 1171 |
1172 AUTOCOMMANDS | 1172 AUTOCOMMANDS |
1173 | 1173 |
1174 Two autocommand events are used: |CmdwinEnter| and |CmdwinLeave|. Since this | 1174 Two autocommand events are used: |CmdwinEnter| and |CmdwinLeave|. You can use |
1175 window is of a special type, the WinEnter, WinLeave, BufEnter and BufLeave | 1175 the Cmdwin events to do settings specifically for the command-line window. |
1176 events are not triggered. You can use the Cmdwin events to do settings | 1176 Be careful not to cause side effects! |
1177 specifically for the command-line window. Be careful not to cause side | |
1178 effects! | |
1179 Example: > | 1177 Example: > |
1180 :au CmdwinEnter : let b:cpt_save = &cpt | set cpt=. | 1178 :au CmdwinEnter : let b:cpt_save = &cpt | set cpt=. |
1181 :au CmdwinLeave : let &cpt = b:cpt_save | 1179 :au CmdwinLeave : let &cpt = b:cpt_save |
1182 This sets 'complete' to use completion in the current window for |i_CTRL-N|. | 1180 This sets 'complete' to use completion in the current window for |i_CTRL-N|. |
1183 Another example: > | 1181 Another example: > |