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
|
else
|
||||||
let vundle_repo="https://github.com/VundleVim/Vundle.vim.git"
|
let vundle_repo="https://github.com/VundleVim/Vundle.vim.git"
|
||||||
echo "Vundle not installed, type :CloneVundle to clone the vundle repo and install it"
|
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
|
endif
|
||||||
|
|
||||||
if !exists("vimrc_autocmds_loaded")
|
if !exists("vimrc_autocmds_loaded")
|
||||||
@@ -93,7 +93,7 @@ function! StripTrailingWhitespace()
|
|||||||
echo "Stripped trailing whitespace"
|
echo "Stripped trailing whitespace"
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
command TrailWhitespace call StripTrailingWhitespace()
|
command! TrailWhitespace call StripTrailingWhitespace()
|
||||||
|
|
||||||
" Hybrid line numbers on active buffer
|
" Hybrid line numbers on active buffer
|
||||||
set nu rnu
|
set nu rnu
|
||||||
@@ -116,10 +116,10 @@ command! -bang Q quit<bang>
|
|||||||
" Status line
|
" Status line
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
set statusline=
|
set statusline=
|
||||||
|
set statusline+=%#StatusLineTerm#
|
||||||
if exists('g:loaded_fugitive')
|
if exists('g:loaded_fugitive')
|
||||||
set statusline+=%#StatusLineTerm#
|
set statusline+=%{FugitiveStatusline()}
|
||||||
endif
|
endif
|
||||||
set statusline+=%{FugitiveStatusline()}
|
|
||||||
set statusline+=%#MoreMsg#
|
set statusline+=%#MoreMsg#
|
||||||
set statusline+=\ %f
|
set statusline+=\ %f
|
||||||
set statusline+=%m\ "
|
set statusline+=%m\ "
|
||||||
|
|||||||
Reference in New Issue
Block a user