mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(doc): don't use method call syntax in examples
The method call syntax patches aren't ported yet.
This commit is contained in:
parent
7da86f55a7
commit
bb35ed6aaa
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user