From 15bbba4aa15fb39306070983ea371f40d1f8933a Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Tue, 30 Jan 2018 14:14:35 +0000 Subject: [PATCH] Try and fix powerline in Vim, also needed to edit inotify watchers on Arch Linux --- vim/vimrc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/vim/vimrc b/vim/vimrc index 6b61c78..005c3b5 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -97,6 +97,12 @@ set ruler " Always display the status line, even if only one window is displayed set laststatus=2 +" Always display the tabline, even if there is only one tab +set showtabline=2 + +" Hide the default mode text (e.g. -- INSERT -- below the statusline) +set noshowmode + " Instead of failing a command because of unsaved changes, instead raise a " dialogue asking if you wish to save changed files. set confirm @@ -164,7 +170,16 @@ nnoremap :nohl "------------------------------------------------------------ " Add the powerline statusbar -set rtp+=/home/jonny/powerline/powerline/bindings/vim + +" Linux +if (filereadable("/usr/lib/python3.6/site-packages/powerline/bindings/vim/__init__.py")) + set rtp+=/usr/lib/python3.6/site-packages/powerline/bindings/vim +endif +" macOS +if (filereadable("/usr/local/lib/python3.6/site-packages/powerline/bindings/vim/__init__.py")) + set rtp+=/usr/local/lib/python3.6/site-packages/powerline/bindings/vim +endif +let g:powerline_pycmd = "py3" "------------------------------------------------------------ " Personal settings