From d6f7f11491909287f6766ba64a84bb9596822b48 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sun, 16 Feb 2014 00:38:36 +0400 Subject: [PATCH] Add more spaces so that python indentation will be correct --- powerline/bindings/vim/plugin/powerline.vim | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/powerline/bindings/vim/plugin/powerline.vim b/powerline/bindings/vim/plugin/powerline.vim index 68ad6af9..b5e11683 100644 --- a/powerline/bindings/vim/plugin/powerline.vim +++ b/powerline/bindings/vim/plugin/powerline.vim @@ -39,16 +39,16 @@ finally echom 'the troubleshooting section in the documentation for' echom 'possible solutions.' echohl None - let s:pystr = "def powerline_troubleshoot():\n" - let s:pystr .= " import sys\n" - let s:pystr .= " if sys.version_info < (2, 6):\n" - let s:pystr .= " print('Too old python version: ' + sys.version + ' (first supported is 2.6)')\n" - let s:pystr .= " elif sys.version_info[0] == 3 and sys.version_info[1] < 2:\n" - let s:pystr .= " print('Too old python 3 version: ' + sys.version + ' (first supported is 3.2)')\n" - let s:pystr .= " try:\n" - let s:pystr .= " import powerline\n" - let s:pystr .= " except ImportError:\n" - let s:pystr .= " print('Unable to import powerline, is it installed?')\n" + let s:pystr = "def powerline_troubleshoot():\n" + let s:pystr .= " import sys\n" + let s:pystr .= " if sys.version_info < (2, 6):\n" + let s:pystr .= " print('Too old python version: ' + sys.version + ' (first supported is 2.6)')\n" + let s:pystr .= " elif sys.version_info[0] == 3 and sys.version_info[1] < 2:\n" + let s:pystr .= " print('Too old python 3 version: ' + sys.version + ' (first supported is 3.2)')\n" + let s:pystr .= " try:\n" + let s:pystr .= " import powerline\n" + let s:pystr .= " except ImportError:\n" + let s:pystr .= " print('Unable to import powerline, is it installed?')\n" if expand('')[:4] isnot# '/usr/' let s:pystr .= " else:\n" let s:pystr .= " import os\n"