mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
Merge pull request #14849 from seandewar/demethod-curwin
fix(doc): various fixes
This commit is contained in:
commit
997a9c8792
@ -913,22 +913,7 @@ This replaces an end-of-line with a new line containing the value of $HOME. >
|
|||||||
This replaces each 'E' character with a euro sign. Read more in |<Char->|.
|
This replaces each 'E' character with a euro sign. Read more in |<Char->|.
|
||||||
|
|
||||||
|
|
||||||
4.3 Search and replace *search-replace*
|
4.3 Changing tabs *change-tabs*
|
||||||
|
|
||||||
*:pro* *:promptfind*
|
|
||||||
:promptf[ind] [string]
|
|
||||||
Put up a Search dialog. When [string] is given, it is
|
|
||||||
used as the initial search string.
|
|
||||||
{only for Win32 GUI}
|
|
||||||
|
|
||||||
*:promptr* *:promptrepl*
|
|
||||||
:promptr[epl] [string]
|
|
||||||
Put up a Search/Replace dialog. When [string] is
|
|
||||||
given, it is used as the initial search string.
|
|
||||||
{only for Win32 GUI}
|
|
||||||
|
|
||||||
|
|
||||||
4.4 Changing tabs *change-tabs*
|
|
||||||
*:ret* *:retab* *:retab!*
|
*:ret* *:retab* *:retab!*
|
||||||
:[range]ret[ab][!] [new_tabstop]
|
:[range]ret[ab][!] [new_tabstop]
|
||||||
Replace all sequences of white-space containing a
|
Replace all sequences of white-space containing a
|
||||||
|
@ -532,7 +532,6 @@ that see the '"' as part of their argument:
|
|||||||
:normal
|
:normal
|
||||||
:ownsyntax
|
:ownsyntax
|
||||||
:popup
|
:popup
|
||||||
:promptfind (and the like)
|
|
||||||
:registers
|
:registers
|
||||||
:return
|
:return
|
||||||
:sort
|
:sort
|
||||||
@ -571,8 +570,6 @@ followed by another Vim command:
|
|||||||
:make
|
:make
|
||||||
:normal
|
:normal
|
||||||
:perlfile
|
:perlfile
|
||||||
:promptfind
|
|
||||||
:promptrepl
|
|
||||||
:pyfile
|
:pyfile
|
||||||
:python
|
:python
|
||||||
:registers
|
:registers
|
||||||
|
@ -1201,6 +1201,7 @@ tag command action ~
|
|||||||
|:cgetfile| :cg[etfile] read file with error messages
|
|:cgetfile| :cg[etfile] read file with error messages
|
||||||
|:changes| :changes print the change list
|
|:changes| :changes print the change list
|
||||||
|:chdir| :chd[ir] change directory
|
|:chdir| :chd[ir] change directory
|
||||||
|
|:checkhealth| :checkh[ealth] run healthchecks
|
||||||
|:checkpath| :che[ckpath] list included files
|
|:checkpath| :che[ckpath] list included files
|
||||||
|:checktime| :checkt[ime] check timestamp of loaded buffers
|
|:checktime| :checkt[ime] check timestamp of loaded buffers
|
||||||
|:chistory| :chi[story] list the error lists
|
|:chistory| :chi[story] list the error lists
|
||||||
@ -1278,6 +1279,7 @@ tag command action ~
|
|||||||
|:endtry| :endt[ry] end previous :try
|
|:endtry| :endt[ry] end previous :try
|
||||||
|:endwhile| :endw[hile] end previous :while
|
|:endwhile| :endw[hile] end previous :while
|
||||||
|:enew| :ene[w] edit a new, unnamed buffer
|
|:enew| :ene[w] edit a new, unnamed buffer
|
||||||
|
|:eval| :ev[al] evaluate an expression and discard the result
|
||||||
|:ex| :ex same as ":edit"
|
|:ex| :ex same as ":edit"
|
||||||
|:execute| :exe[cute] execute result of expressions
|
|:execute| :exe[cute] execute result of expressions
|
||||||
|:exit| :exi[t] same as ":xit"
|
|:exit| :exi[t] same as ":xit"
|
||||||
@ -1451,14 +1453,12 @@ tag command action ~
|
|||||||
|:packloadall| :packl[oadall] load all packages under 'packpath'
|
|:packloadall| :packl[oadall] load all packages under 'packpath'
|
||||||
|:pclose| :pc[lose] close preview window
|
|:pclose| :pc[lose] close preview window
|
||||||
|:pedit| :ped[it] edit file in the preview window
|
|:pedit| :ped[it] edit file in the preview window
|
||||||
|:perl| :perl execute perl command
|
|:perl| :pe[rl] execute perl command
|
||||||
|:perldo| :perldo execute perl command for each line
|
|:perldo| :perld[o] execute perl command for each line
|
||||||
|:perfile| :perlfile execute perl script file
|
|:perlfile| :perlf[ile] execute perl script file
|
||||||
|:print| :p[rint] print lines
|
|:print| :p[rint] print lines
|
||||||
|:profdel| :profd[el] stop profiling a function or script
|
|:profdel| :profd[el] stop profiling a function or script
|
||||||
|:profile| :prof[ile] profiling functions and scripts
|
|:profile| :prof[ile] profiling functions and scripts
|
||||||
|:promptfind| :pro[mptfind] open GUI dialog for searching
|
|
||||||
|:promptrepl| :promptr[epl] open GUI dialog for search/replace
|
|
||||||
|:pop| :po[p] jump to older entry in tag stack
|
|:pop| :po[p] jump to older entry in tag stack
|
||||||
|:popup| :popu[p] popup a menu by name
|
|:popup| :popu[p] popup a menu by name
|
||||||
|:ppop| :pp[op] ":pop" in preview window
|
|:ppop| :pp[op] ":pop" in preview window
|
||||||
@ -1537,7 +1537,6 @@ tag command action ~
|
|||||||
buffer list
|
buffer list
|
||||||
|:scriptnames| :scr[iptnames] list names of all sourced Vim scripts
|
|:scriptnames| :scr[iptnames] list names of all sourced Vim scripts
|
||||||
|:scriptencoding| :scripte[ncoding] encoding used in sourced Vim script
|
|:scriptencoding| :scripte[ncoding] encoding used in sourced Vim script
|
||||||
|:scriptversion| :scriptv[ersion] version of Vim script used
|
|
||||||
|:scscope| :scs[cope] split window and execute cscope command
|
|:scscope| :scs[cope] split window and execute cscope command
|
||||||
|:set| :se[t] show or set options
|
|:set| :se[t] show or set options
|
||||||
|:setfiletype| :setf[iletype] set 'filetype', unless it was set already
|
|:setfiletype| :setf[iletype] set 'filetype', unless it was set already
|
||||||
@ -1549,8 +1548,6 @@ tag command action ~
|
|||||||
|:sign| :sig[n] manipulate signs
|
|:sign| :sig[n] manipulate signs
|
||||||
|:silent| :sil[ent] run a command silently
|
|: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
|
||||||
|: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
|
|:slast| :sla[st] split window and go to last file in the
|
||||||
argument list
|
argument list
|
||||||
|:smagic| :sm[agic] :substitute with 'magic'
|
|:smagic| :sm[agic] :substitute with 'magic'
|
||||||
|
@ -855,7 +855,7 @@ Here is an example that counts the number of spaces with <F4>: >
|
|||||||
set clipboard= selection=inclusive
|
set clipboard= selection=inclusive
|
||||||
let commands = #{line: "'[V']y", char: "`[v`]y", block: "`[\<c-v>`]y"}
|
let commands = #{line: "'[V']y", char: "`[v`]y", block: "`[\<c-v>`]y"}
|
||||||
silent exe 'noautocmd keepjumps normal! ' .. get(commands, a:type, '')
|
silent exe 'noautocmd keepjumps normal! ' .. get(commands, a:type, '')
|
||||||
echom getreg('"')->count(' ')
|
echom count(getreg('"'), ' ')
|
||||||
finally
|
finally
|
||||||
call setreg('"', reg_save)
|
call setreg('"', reg_save)
|
||||||
call setpos("'<", visual_marks_save[0])
|
call setpos("'<", visual_marks_save[0])
|
||||||
|
@ -462,7 +462,7 @@ the current window, try this custom `:HelpCurwin` command:
|
|||||||
execute mods .. ' helpclose'
|
execute mods .. ' helpclose'
|
||||||
let s:did_open_help = v:true
|
let s:did_open_help = v:true
|
||||||
endif
|
endif
|
||||||
if !getcompletion(a:subject, 'help')->empty()
|
if !empty(getcompletion(a:subject, 'help'))
|
||||||
execute mods .. ' edit ' .. &helpfile
|
execute mods .. ' edit ' .. &helpfile
|
||||||
endif
|
endif
|
||||||
return 'help ' .. a:subject
|
return 'help ' .. a:subject
|
||||||
|
@ -506,7 +506,8 @@ gO Show a filetype-specific, navigable "outline" of the
|
|||||||
Queued messages are processed during the sleep.
|
Queued messages are processed during the sleep.
|
||||||
|
|
||||||
*:sl!* *:sleep!*
|
*:sl!* *:sleep!*
|
||||||
:[N]sl[eep]! [N] [m] Same as above, but hide the cursor.
|
:[N]sl[eep]! [N] [m] Same as above. Unlike Vim, it does not hide the
|
||||||
|
cursor. |vim-differences|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
2. Using Vim like less or more *less*
|
2. Using Vim like less or more *less*
|
||||||
|
@ -421,7 +421,10 @@ Commands:
|
|||||||
:mode (no longer accepts an argument)
|
:mode (no longer accepts an argument)
|
||||||
:open
|
:open
|
||||||
:Print
|
:Print
|
||||||
|
:promptfind
|
||||||
|
:promptrepl
|
||||||
:shell
|
:shell
|
||||||
|
:sleep! (does not hide the cursor; same as :sleep)
|
||||||
:smile
|
:smile
|
||||||
:tearoff
|
:tearoff
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user