From e4a0fe1d9ce30e207cddd302588fee924b6ec588 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Tue, 20 Aug 2013 23:16:39 +0000 Subject: [PATCH] move paste symbol variable into extension, update docs. --- autoload/airline/extensions/paste.vim | 2 +- doc/airline.txt | 6 +++--- plugin/airline.vim | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/autoload/airline/extensions/paste.vim b/autoload/airline/extensions/paste.vim index 7ffd7cf..74e64bc 100644 --- a/autoload/airline/extensions/paste.vim +++ b/autoload/airline/extensions/paste.vim @@ -2,7 +2,7 @@ " vim: et ts=2 sts=2 sw=2 let s:symbol = get(g:, 'airline#extensions#paste#symbol', - \ get(g:, 'airline_paste_symbol', '')) + \ get(g:, 'airline_paste_symbol', (exists('g:airline_powerline_fonts') ? ' ' : '').'PASTE')) function! airline#extensions#paste#get_mark() return &paste ? ' ' . s:symbol : '' diff --git a/doc/airline.txt b/doc/airline.txt index 5f9edb8..7b7a923 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -121,9 +121,9 @@ separators, as well as the powerline font glyths. let g:airline_linecolumn_prefix = '␤ ' let g:airline_linecolumn_prefix = '¶ ' let g:airline#extensions#branch#symbol = '⎇ ' - let g:airline_paste_symbol = 'ρ' - let g:airline_paste_symbol = 'Þ' - let g:airline_paste_symbol = '∥' + let g:airline#extensions#paste#symbol = 'ρ' + let g:airline#extensions#paste#symbol = 'Þ' + let g:airline#extensions#paste#symbol = '∥' let g:airline#extensions#whitespace#symbol = 'Ξ' " powerline symbols diff --git a/plugin/airline.vim b/plugin/airline.vim index 8eea40a..ce5fec2 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -20,7 +20,6 @@ call s:check_defined('g:airline_detect_iminsert', 0) call s:check_defined('g:airline_detect_modified', 1) call s:check_defined('g:airline_detect_paste', 1) call s:check_defined('g:airline_linecolumn_prefix', exists('g:airline_powerline_fonts')?' ':':') -call s:check_defined('g:airline_paste_symbol', (exists('g:airline_powerline_fonts') ? ' ' : '').'PASTE') call s:check_defined('g:airline_inactive_collapse', 1) call s:check_defined('g:airline_exclude_filenames', ['DebuggerWatch','DebuggerStack','DebuggerStatus']) call s:check_defined('g:airline_exclude_filetypes', [])