summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2018-05-20 10:24:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2018-05-20 10:31:49 +0000
commit8983340cb554b820b6b29d8c624277cb293b0bcf (patch)
tree0cb2ba5c2ff2e550855eb8dbef1a7cef1fb45697
parentReleasing progress-linux version 2:8.0.1766-1~dschinn1. (diff)
downloadvim-8983340cb554b820b6b29d8c624277cb293b0bcf.zip
vim-8983340cb554b820b6b29d8c624277cb293b0bcf.tar.xz
Enabling powerline if python3-powerline is installed.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/runtime/vimrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/runtime/vimrc b/debian/runtime/vimrc
index 46690ef..eec250a 100644
--- a/debian/runtime/vimrc
+++ b/debian/runtime/vimrc
@@ -74,6 +74,17 @@ highlight ExtraWhitespace ctermbg=red guibg=red
" Show spaces used for indenting (so you use only tabs for indenting)
":match ExtraWhitespace /^\t*\zs \+/
+if filereadable("/usr/lib/python3/dist-packages/powerline/vim.py") && has('python3')
+ python3 from powerline.vim import setup as powerline_setup
+ python3 powerline_setup()
+ python3 del powerline_setup
+
+ set laststatus=2
+ set noshowmode
+ set showtabline=2
+ set t_Co=256
+endif
+
" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local