vimrc: Source after cloning Vundle. Complain less
This commit is contained in:
8
.vimrc
8
.vimrc
@@ -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\ "
|
||||
|
||||
Reference in New Issue
Block a user