Check VIMRUNTIME instead

pull/557/head
Bez Hermoso 2015-08-31 16:35:44 -07:00
parent 29861812dd
commit 77a891d8c6
2 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ function powerline_battery_status_prompt {
} }
function powerline_in_vim_prompt { function powerline_in_vim_prompt {
if [ -z "$MYVIMRC" ]; then if [ -z "$VIMRUNTIME" ]; then
IN_VIM_PROMPT="" IN_VIM_PROMPT=""
else else
IN_VIM_PROMPT="$(set_rgb_color - ${IN_VIM_PROMPT_COLOR}) ${IN_VIM_PROMPT_TEXT} " IN_VIM_PROMPT="$(set_rgb_color - ${IN_VIM_PROMPT_COLOR}) ${IN_VIM_PROMPT_TEXT} "

View File

@ -108,7 +108,7 @@ function powerline_last_status_prompt {
} }
function powerline_in_vim_prompt { function powerline_in_vim_prompt {
if [ -z "$MYVIMRC" ]; then if [ -z "$VIMRUNTIME" ]; then
IN_VIM_PROMPT="" IN_VIM_PROMPT=""
else else
IN_VIM_PROMPT="$(set_rgb_color ${LAST_THEME_COLOR} ${IN_VIM_PROMPT_COLOR})${THEME_PROMPT_SEPARATOR}${normal}$(set_rgb_color - ${IN_VIM_PROMPT_COLOR}) ${IN_VIM_PROMPT_TEXT} ${normal}$(set_rgb_color ${IN_VIM_PROMPT_COLOR} -)${normal}" IN_VIM_PROMPT="$(set_rgb_color ${LAST_THEME_COLOR} ${IN_VIM_PROMPT_COLOR})${THEME_PROMPT_SEPARATOR}${normal}$(set_rgb_color - ${IN_VIM_PROMPT_COLOR}) ${IN_VIM_PROMPT_TEXT} ${normal}$(set_rgb_color ${IN_VIM_PROMPT_COLOR} -)${normal}"