mirror of https://github.com/neovim/neovim.git
feat(normal)!: remove the default gs normal mode command
Problem: gs is a stupid normal command. Solution: Remove it!
This commit is contained in:
parent
a1550dbf0a
commit
72bae3d2b7
|
@ -140,6 +140,8 @@ The following changes may require adaptations in user config or plugins.
|
|||
• |nvim_open_win()| now blocks all autocommands when `noautocmd` is set,
|
||||
rather than just those from setting the `buffer` to display in the window.
|
||||
|
||||
• Removed the |gs| normal command.
|
||||
|
||||
==============================================================================
|
||||
BREAKING CHANGES IN HEAD *news-breaking-dev*
|
||||
|
||||
|
|
|
@ -515,16 +515,15 @@ gO Show a filetype-specific, navigable "outline" of the
|
|||
|
||||
Currently works in |help| and |:Man| buffers.
|
||||
|
||||
[N]gs *gs* *:sl* *:sleep*
|
||||
*:sl* *:sleep*
|
||||
:[N]sl[eep] [N][m] Do nothing for [N] seconds, or [N] milliseconds if [m]
|
||||
was given. "gs" always uses seconds.
|
||||
was given.
|
||||
Default is one second. >
|
||||
:sleep "sleep for one second
|
||||
:5sleep "sleep for five seconds
|
||||
:sleep 100m "sleep for 100 milliseconds
|
||||
10gs "sleep for ten seconds
|
||||
< Can be interrupted with CTRL-C.
|
||||
"gs" stands for "goto sleep".
|
||||
While sleeping the cursor is positioned in the text,
|
||||
if at a visible position.
|
||||
Queued messages are processed during the sleep.
|
||||
|
|
|
@ -675,6 +675,8 @@ Highlight groups:
|
|||
\|setlocal winhighlight=StatusLine:StatusLineTerm,StatusLineNC:StatusLineTermNC
|
||||
\|else|setlocal winhighlight=|endif
|
||||
<
|
||||
Normal commands:
|
||||
*gs*
|
||||
|
||||
Options:
|
||||
*'aleph'* *'al'*
|
||||
|
|
|
@ -5525,11 +5525,6 @@ static void nv_g_cmd(cmdarg_T *cap)
|
|||
nv_gomark(cap);
|
||||
break;
|
||||
|
||||
// "gs": Goto sleep.
|
||||
case 's':
|
||||
do_sleep(cap->count1 * 1000);
|
||||
break;
|
||||
|
||||
// "ga": Display the ascii value of the character under the
|
||||
// cursor. It is displayed in decimal, hex, and octal. -- webb
|
||||
case 'a':
|
||||
|
|
|
@ -21,7 +21,7 @@ func! Test_sleep_bang()
|
|||
call s:assert_takes_longer('sl 50m', 50)
|
||||
call s:assert_takes_longer('sl! 50m', 50)
|
||||
call s:assert_takes_longer('1sleep', 1000)
|
||||
call s:assert_takes_longer('normal 1gs', 1000)
|
||||
" call s:assert_takes_longer('normal 1gs', 1000)
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
|
Loading…
Reference in New Issue