a
join(filter(split(execute("ls"), "\n"), {_, x -> matchstr(x, "Scratch") == ""}), "\n")Size: a a a
a
join(filter(split(execute("ls"), "\n"), {_, x -> matchstr(x, "Scratch") == ""}), "\n")N
:w !sudo tee "%"
sudo: a terminal is required to read the password; either use the -S option to read from standard input
or configure an askpass helper
sudo: a password is required
https://github.com/neovim/neovim/issues/12103N
:w !sudo tee "%"
sudo: a terminal is required to read the password; either use the -S option to read from standard input
or configure an askpass helper
sudo: a password is required
https://github.com/neovim/neovim/issues/12103ПК
NG
GK
sudo.N
sudo.GK
EG
let res = []
for buf in getbufinfo()
if buf.name !~# 'Scratch'
call add(res, buf.name)
endif
endfor
echo join(res, "\n")
vim9script
var res = []
for buf in getbufinfo()
if buf.name !~ 'Scratch'
res->add(buf.name)
endif
endfor
echo join(res, "\n")
vim.fn.getbufinfo() вместо bufinfo() и insert() вместо add()EG
sudo.EG
!-команды в NeoVim не получают STDINEG
EG
!-команды в NeoVim не получают STDINEG
!sudo в gVim, напримерYS
vim.fn.getbufinfo() вместо bufinfo() и insert() вместо add()EG
!~#, потому что в дефолтном операторе настройки редактора влияют на язык)NG
EG