Skip to content

Instantly share code, notes, and snippets.

@b0o
Last active December 9, 2018 03:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b0o/a16d68c958a86e066c038304f1555eba to your computer and use it in GitHub Desktop.
Save b0o/a16d68c958a86e066c038304f1555eba to your computer and use it in GitHub Desktop.
function! ReggieStatus()
let l:pasteReg = g:GetPasteReg()
let l:yankReg = g:GetYankReg()
if l:pasteReg == l:yankReg
if l:pasteReg == '"'
return
endif
return 'yp="'.l:pasteReg
endif
return 'y="'.l:yankReg.',p="'.l:pasteReg
endfunction
let g:airline_section_z = airline#section#create(['%n ', '%{ReggieStatus()}%3p%%%4l/%L:%-3v '])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment