From a4b9f1d288c8beb20c502b026fad63af8b2be0b6 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Sun, 5 Feb 2017 19:36:30 +0100 Subject: [PATCH] [vim] use standard Unicode in statusline (airline) The fonts patched with Powerline symbols are buggy and limited. Using standard Unicode provides good looks and requires no fiddling with fonts, which is less headache in terms of portability. If support for the used Unicode symbols turns out to be too limited, they can be changed to normal ASCII characters. --- .gitmodules | 6 ------ resources/Menlo-for-Powerline | 1 - resources/powerline-consolas | 1 - vimrc | 17 +++++++++++++++-- 4 files changed, 15 insertions(+), 10 deletions(-) delete mode 160000 resources/Menlo-for-Powerline delete mode 160000 resources/powerline-consolas diff --git a/.gitmodules b/.gitmodules index c29cd41..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +0,0 @@ -[submodule "resources/Menlo-for-Powerline"] - path = resources/Menlo-for-Powerline - url = https://github.com/abertsch/Menlo-for-Powerline.git -[submodule "resources/powerline-consolas"] - path = resources/powerline-consolas - url = https://github.com/nicolalamacchia/powerline-consolas.git diff --git a/resources/Menlo-for-Powerline b/resources/Menlo-for-Powerline deleted file mode 160000 index 07e91f6..0000000 --- a/resources/Menlo-for-Powerline +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 07e91f66786b3755d99dcfe52b436cf1c2355f38 diff --git a/resources/powerline-consolas b/resources/powerline-consolas deleted file mode 160000 index fe97c6d..0000000 --- a/resources/powerline-consolas +++ /dev/null @@ -1 +0,0 @@ -Subproject commit fe97c6dda5996ba6cfd00bdb82c8211e4ac2a544 diff --git a/vimrc b/vimrc index 7ed9966..f48e479 100644 --- a/vimrc +++ b/vimrc @@ -76,8 +76,20 @@ set nocompatible highlight link taskpaperCancelled Comment highlight link taskpaperComment Normal - let g:airline_theme="solarized" - let g:airline_powerline_fonts = 1 + if !exists('g:airline_symbols') + let g:airline_symbols = {} + endif + let g:airline_left_sep = ' ' + let g:airline_right_sep = ' ' + let g:airline_left_alt_sep = '' + let g:airline_right_alt_sep = '' + let g:airline_symbols.crypt = '☢' + let g:airline_symbols.paste = 'Ⓟ' + let g:airline_symbols.spell = '✔' + let g:airline_symbols.branch = '⎇' + let g:airline_symbols.readonly = ' ⃠' + let g:airline_symbols.linenr = '␤' + let g:airline_symbols.whitespace = '✗' colorscheme solarized filetype plugin indent on @@ -152,3 +164,4 @@ augroup vimrc " {{{ augroup END " }}} if filereadable(expand("~/.vimrc.local")) | source ~/.vimrc.local | endif +