mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-02-21 09:08:25 +08:00
readonly mark is now a member of extensions
This commit is contained in:
11
autoload/airline/extensions/readonly.vim
Normal file
11
autoload/airline/extensions/readonly.vim
Normal file
@@ -0,0 +1,11 @@
|
||||
" MIT License. Copyright (c) 2013 Bailey Ling.
|
||||
" vim: et ts=2 sts=2 sw=2
|
||||
|
||||
function! airline#extensions#readonly#get_mark()
|
||||
return &ro ? g:airline_readonly_symbol : ''
|
||||
endfunction
|
||||
|
||||
function! airline#extensions#readonly#init()
|
||||
let g:airline_section_c .= '%{airline#extensions#readonly#get_mark()}'
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user