paste mark is now a member of extensions

This commit is contained in:
itchyny
2013-08-21 05:29:08 +09:00
parent 0068093ea0
commit 20c5c64590
3 changed files with 19 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
" MIT License. Copyright (c) 2013 Bailey Ling.
" vim: et ts=2 sts=2 sw=2
let s:symbol = get(g:, 'airline#extensions#paste#symbol',
\ get(g:, 'airline_paste_symbol', ''))
function! airline#extensions#paste#get_mark()
return &paste ? ' ' . s:symbol : ''
endfunction
function! airline#extensions#paste#init()
let g:airline_section_a .= '%{airline#extensions#paste#get_mark()}'
endfunction