2

I'm using the Airline plugin.

How can I show the + register in Airline ?

1 Answer 1

3

(not using Airline, guessing from the documentation)

You can add the following to your status line and it will show the content of the register +:

set statusline+=%{@+}

Then you have different choice in airline (also guessing from the doc):

From add_statusline_func:

let w:airline_section_b = '%{@+}'

From airline-sections:

let g:airline_section_c = airline#section#create(['%{@+}'])
3
  • i have put the code in my vimrc and is not worked?
    – HendrikVIM
    Jun 16, 2016 at 13:41
  • I think it's normal. As I said, I do not use airline, so this is just a guess about how you can do. The main point is to use the %{@+} somewhere in the airline configuration. You just need to see at which point in your configuration it must be placed ;)
    – nobe4
    Jun 16, 2016 at 13:43
  • Thanks. its Wokrs. 'let g:airline_section_b = '%{@+}''
    – HendrikVIM
    Jun 16, 2016 at 15:26

Your Answer

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

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