From 74dd0862cd02abee851328caf74194973ee035af Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 28 Aug 2017 09:28:37 +0200 Subject: Fixed scrolling issues and little reordering --- vimrc-full | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'vimrc-full') diff --git a/vimrc-full b/vimrc-full index 17f6038..dcc5b76 100644 --- a/vimrc-full +++ b/vimrc-full @@ -1,5 +1,10 @@ " vim: noai:ts=2:sw=2:sts=2 iskeyword+=\:,\!,\<,\>,\-,\& +" scripts from the default vim installation, which do not get loaded by default, but are useful. +" if filereadable($VIMRUNTIME.'/macros/editexisting.vim') +" source $VIMRUNTIME/macros/editexisting.vim +" endif + "======================================================================================================================= " GENERAL: "======================================================================================================================= @@ -7,11 +12,6 @@ set textwidth=120 | " better done with modeline set ts=4 sts=4 sw=4 expandtab | " better done with a modeline set redrawtime=1000 | " Timeout in milliseconds for redrawing the display / CTRL+L to retry -" scripts from the default vim installation, which do not get loaded by default, but are useful. -if filereadable('macros/editexisting') - silent :runtime macros/editexisting.vim -endif - "======================================================================================================================= " SHELL "======================================================================================================================= @@ -136,8 +136,9 @@ if has("gui_running") " its possible to define alternative fonts (order matters) set guifont= - set guifont+=Droid\ Sans\ Mono\ for\ Powerline\ 10 + set guifont+=Source\ Code\ Pro\ Semi-Bold\ 10 set guifont+=Source\ Code\ Pro\ for\ Powerline\ SemiBold\ 10 + set guifont+=Droid\ Sans\ Mono\ for\ Powerline\ 10 set guifont+=Dejavu\ Sans\ Mono\ for\ Powerline\ Semibold set guifont+=Meslo\ LG\ M\ for\ Powerline\ 10 endif @@ -183,7 +184,6 @@ set number | " turn line numbers on/off (performance decrease set pumheight=8 | " Determines the maximum number of items to show in the popup menu for set path+=** | " allow recursive searches for files set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge -set scrolloff=3 | " keeps cursor centered set splitbelow | " open new windows below the current one (i find that more intuitive) set shiftround | " indent/unindent snaps to multiple of shiftwidths set shortmess+=I | " don't give the intro message when starting Vim |:intro|. @@ -199,6 +199,7 @@ set virtualedit=all | " virtual edit should be default behaviour, beca set writedelay=0 set wildmenu | " use a menu in the command line set wildmode=longest:full | " do not preselect any entry and show all possible +set sessionoptions-=blank set nocindent smartindent | " use smart indent rather then cindent set noshiftround | " indent/unindent sna=ps to multiple of shiftwidths @@ -771,5 +772,10 @@ endif " ====================================================================================================================== " avoids openin an empty buffer when restoring bufferlist from viminfo... " if argc() == 0 -" autocmd VimEnter * nested :silent bun +" silent autocmd VimEnter * nested :silent bun " endif + +set scrolloff=0 | " keeps cursor centered +autocmd VimEnter,WinEnter * exec ':set scrolljump='.winheight(0)/2 + + -- cgit v1.2.3