vim / vim

The official Vim repository

Home Page:https://www.vim.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't add {silent} argument to execute()

alizeegagnon opened this issue · comments

Steps to reproduce

  1. Start vim with vim -u NONE
  2. Insert any text in the first line and come back to normal mode (ex. ithis is text<ESC>)
  3. Type :execute('1d', 'silent')

Expected behaviour

The first line gets deleted (silently)
I expect this command to succeed because :help execute() suggests the {silent} option.

Version of Vim

8.2.2121

Environment

OS: Ubuntu 22.04.4 LTS
Terminal: GNOME Terminal 3.44.0
$TERM: xterm-256color
Shell: GNU bash, version 5.1.16(1)
Window manager: i3wm version 4.20.1
Full vim version, patches, features, flags

Logs and stack traces

E110: Missing ')'

:call execute('1d', 'silent')

That was it, thanks!!