diff --git a/.vimrc b/.vimrc index f81c0f3..3df86cb 100755 --- a/.vimrc +++ b/.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 " Status line set laststatus=2 set statusline= +set statusline+=%#StatusLineTerm# if exists('g:loaded_fugitive') - set statusline+=%#StatusLineTerm# + set statusline+=%{FugitiveStatusline()} endif -set statusline+=%{FugitiveStatusline()} set statusline+=%#MoreMsg# set statusline+=\ %f set statusline+=%m\ "