X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.vimrc;h=bc18a76ea2aa263163d917f70f8b5ff875321969;hb=3929139211192ca2fda3abea1ac391fbd5f54d6f;hp=147fb38d400f64de2251c0ee30dec65804ce86ae;hpb=d474db69949cdfdd4cfed1db74a259cb06f68bd0;p=dotfiles.git diff --git a/.vimrc b/.vimrc index 147fb38..bc18a76 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 @@ -34,6 +38,7 @@ behave xterm " 2 moving around, searching and patterns set ignorecase " Ignore case in search patterns +set noincsearch " No incremental searching set smartcase " Match 'word' case-insensitive and 'Word' case-sensitive set nostartofline " Keep cursor's column @@ -47,6 +52,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'