From: Oleg Broytman Date: Mon, 1 Oct 2018 13:08:28 +0000 (+0300) Subject: .vimrc: source $VIMRUNTIME/defaults.vim and reset &scrolloff X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=164fe482fb8720ccca04c0cf2a696e867cbece67;p=dotfiles.git .vimrc: source $VIMRUNTIME/defaults.vim and reset &scrolloff --- diff --git a/.vimrc b/.vimrc index 147fb38..6f6a462 100644 --- a/.vimrc +++ b/.vimrc @@ -22,6 +22,10 @@ if exists("b:wrap") " Only do this on the second and subsequent :source's set nomodified endif unlet fenc ftype mod + +elseif filereadable($VIMRUNTIME . "/defaults.vim") + unlet! skip_defaults_vim + source $VIMRUNTIME/defaults.vim endif " No, it is not VI, it is VIM! It is important to set this first, because this @@ -47,6 +51,7 @@ set list " listchars only works with 'list' " Show tabs, non-breaking/trailing spaces, long lines set listchars=tab:>_,nbsp:_,trail:_,extends:+,precedes:+ " Another usefull additions: eol:$,space:_ +set scrolloff=0 " number of screen lines to show around the cursor set wrap " Visually wrap long lines " With 'set wrap' wrap long lines at a character in 'breakat'