This is an alias of vim.

File read

This executable can read data from local files.
  1. This function can be performed by any unprivileged user.
    vim -c ':redir! >/path/to/output-file | echo "DATA" | redir END | q'
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    vim -c ':redir! >/path/to/output-file | echo "DATA" | redir END | q'
    This function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.
    vim -c ':redir! >/path/to/output-file | echo "DATA" | redir END | q'
    RemarksThe content is corrupted or otherwise altered by the process, thus it might not be suitable for handling arbitrary binary data.

Inherit

This executable can inherit functions from another.
  1. CommentThis allows to run Python code (...).
    This function can be performed by any unprivileged user.
    vim -c ':py ...'
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    vim -c ':py ...'
    This function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.
    vim -c ':py ...'
    Functions

    Inherits from python, thus possibly granting its functions.

  2. CommentThis allows to run Lua code (...).
    This function can be performed by any unprivileged user.
    vim -c ':lua ...'
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    vim -c ':lua ...'
    This function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.
    vim -c ':lua ...'
    Functions

    Inherits from lua, thus possibly granting its functions.

  3. This function can be performed by any unprivileged user.
    vim
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    vim
    This function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.
    vim
    Functions

    Inherits from vi, thus possibly granting its functions.