Skip to content

Add an option to make all mappings <silent> #241

@sghng

Description

@sghng

This could be very helpful for certain users that use a pop up window for commands. If the mappings are not silent, the cmd pop up are quickly displayed and disappear, which is a little bit annoying.

function! s:Map(...) abort
  let [mode, head, rhs; rest] = a:000
  let flags = get(rest, 0, '') . (rhs =~# '^<Plug>' ? '' : '<script>')

Seems that we can simply add an option and make mappings silent here. it won't be a bit refactor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions