vimrc: Source after cloning Vundle. Complain less

This commit is contained in:
2020-03-18 08:54:05 +01:00
parent 740729834a
commit 3abb253457

8
.vimrc
View File

@@ -31,7 +31,7 @@ if filereadable(expand(vundle_dir) . "/README.md")
else
let vundle_repo="https://github.com/VundleVim/Vundle.vim.git"
echo "Vundle not installed, type :CloneVundle to clone the vundle repo and install it"
command CloneVundle execute "!git clone " . vundle_repo . " " . vundle_dir
command! CloneVundle execute "!git clone " . vundle_repo . " " . vundle_dir | source $MYVIMRC | echo "Cloned Vundle. Do :PluginInstall"
endif
if !exists("vimrc_autocmds_loaded")
@@ -93,7 +93,7 @@ function! StripTrailingWhitespace()
echo "Stripped trailing whitespace"
endfunction
command TrailWhitespace call StripTrailingWhitespace()
command! TrailWhitespace call StripTrailingWhitespace()
" Hybrid line numbers on active buffer
set nu rnu
@@ -116,10 +116,10 @@ command! -bang Q quit<bang>
" Status line
set laststatus=2
set statusline=
if exists('g:loaded_fugitive')
set statusline+=%#StatusLineTerm#
endif
if exists('g:loaded_fugitive')
set statusline+=%{FugitiveStatusline()}
endif
set statusline+=%#MoreMsg#
set statusline+=\ %f
set statusline+=%m\ "