A few style fixes

This commit is contained in:
ZyX 2014-02-16 00:40:22 +04:00
parent d6f7f11491
commit f384055f32

View File

@ -3,12 +3,12 @@ if exists('g:powerline_loaded')
endif endif
let g:powerline_loaded = 1 let g:powerline_loaded = 1
if ! has('python') && ! has('python3') if !has('python') && !has('python3')
if !exists('g:powerline_no_python_error') if !exists('g:powerline_no_python_error')
echohl ErrorMsg echohl ErrorMsg
echom 'You need vim compiled with Python 2.6, 2.7 or 3.2 and later support' echomsg 'You need vim compiled with Python 2.6, 2.7 or 3.2 and later support'
echom 'for Powerline to work. Please consult the documentation for more' echomsg 'for Powerline to work. Please consult the documentation for more'
echom 'details.' echomsg 'details.'
echohl None echohl None
endif endif
finish finish
@ -32,12 +32,12 @@ finally
unlet s:import_cmd unlet s:import_cmd
if !exists('s:launched') if !exists('s:launched')
echohl ErrorMsg echohl ErrorMsg
echom 'An error occurred while importing powerline package.' echomsg 'An error occurred while importing powerline package.'
echom 'This could be caused by invalid sys.path setting,' echomsg 'This could be caused by invalid sys.path setting,'
echom 'or by an incompatible Python version (powerline requires' echomsg 'or by an incompatible Python version (powerline requires'
echom 'Python 2.6, 2.7 or 3.2 and later to work). Please consult' echomsg 'Python 2.6, 2.7 or 3.2 and later to work). Please consult'
echom 'the troubleshooting section in the documentation for' echomsg 'the troubleshooting section in the documentation for'
echom 'possible solutions.' echomsg 'possible solutions.'
echohl None echohl None
let s:pystr = "def powerline_troubleshoot():\n" let s:pystr = "def powerline_troubleshoot():\n"
let s:pystr .= " import sys\n" let s:pystr .= " import sys\n"