0

With terminal vim I can just double click the statusline and select the filename, which is very handy.

In gvim or macvim clicking the statusline prompts me to resize the active window, not very useful. Is there an option to make the statusline selectable ?

1
  • 1
    If you want the filename, use % or the @% register
    – D. Ben Knoble
    Aug 28, 2021 at 17:34

1 Answer 1

2

There is no 'option' in gvim that lets you do it.

If you select it to copy to clipboard, then you can do:

  1. :let @*=@% current buffer filename would be in clipboard.
  2. :let @*=expand("%:p") current buffer full path filename would be in clipboard.
  3. :let @*=expand("%:t") current buffer filename without path would be in clipboard.

See :h expand(), :h registers, :h quote_%, :h @r

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.