diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2024-12-07 21:42:44 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-07 21:42:44 +0800 |
| commit | 4817547ec4630c2af2c94ade07bbf220992ad0d7 (patch) | |
| tree | 71c50001a8ffac5a75c0f3206fcae3d969f33aa1 /runtime | |
| parent | 92e61072ac7493d85c15e3403f17619446782b51 (diff) | |
| download | rneovim-4817547ec4630c2af2c94ade07bbf220992ad0d7.tar.gz rneovim-4817547ec4630c2af2c94ade07bbf220992ad0d7.tar.bz2 rneovim-4817547ec4630c2af2c94ade07bbf220992ad0d7.zip | |
feat(ex_cmds): :sleep! hides the cursor while sleeping (#31493)
Problem: :sleep! not hiding the cursor is an arbitrary difference from
Vim without obvious justification, and Vim's behavior isn't
easily achievable in Nvim.
Solution: Make :sleep! hide the cursor while sleeping.
Ref:
https://github.com/neovim/neovim/commit/6a01b3fcc361960e559db459e1524418bc76dd66
https://github.com/neovim/neovim/commit/b5c0ade43790cf18f6a54858ddad30d8d9667cf9
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/doc/index.txt | 2 | ||||
| -rw-r--r-- | runtime/doc/various.txt | 3 | ||||
| -rw-r--r-- | runtime/doc/vim_diff.txt | 1 |
3 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/index.txt b/runtime/doc/index.txt index 9ee75ea950..d81d59c56f 100644 --- a/runtime/doc/index.txt +++ b/runtime/doc/index.txt @@ -1569,6 +1569,8 @@ tag command action ~ |:sign| :sig[n] manipulate signs |:silent| :sil[ent] run a command silently |:sleep| :sl[eep] do nothing for a few seconds +|:sleep!| :sl[eep]! do nothing for a few seconds, without the + cursor visible |:slast| :sla[st] split window and go to last file in the argument list |:smagic| :sm[agic] :substitute with 'magic' diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt index 5049439337..6074931565 100644 --- a/runtime/doc/various.txt +++ b/runtime/doc/various.txt @@ -552,8 +552,7 @@ gO Show a filetype-specific, navigable "outline" of the Queued messages are processed during the sleep. *:sl!* *:sleep!* -:[N]sl[eep]! [N][m] Same as above. Unlike Vim, it does not hide the - cursor. |vim-differences| +:[N]sl[eep]! [N][m] Same as above, but hide the cursor. ============================================================================== 2. Using Vim like less or more *less* diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 7021e1d3e2..bfef5d5d4a 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -670,7 +670,6 @@ Commands: - :promptrepl - :scriptversion (always version 1) - :shell -- :sleep! (does not hide the cursor; same as :sleep) - :smile - :tearoff - :cstag |